Quantcast
Channel: Adobe Community : All Content - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 888

How handle match () for brackets

$
0
0

Hi,

I have a small script to compare two text messages. Even though both text messages are same, the scripts outputs an alert message saying "Text Do Not Match".

Please let me know, how can I handle this situation.

 

1. var text1 = "USE PROTECTIVE EQUIPMENT (GOGGLES FACE SHIELD) WHEN USING COMPRESSED AIR."

2. var text2 = "USE PROTECTIVE EQUIPMENT (GOGGLES FACE SHIELD) WHEN USING COMPRESSED AIR."

3. if (text1.match (text2))

4. alert ("Text matches");

5. else

6. alert ("Text Do Not Match");


Viewing all articles
Browse latest Browse all 888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>