Re: Problem with the $ sign by Match String



Take a look at this attachment.
 
In a regular expression, $ means end of string. 
 
If your input string is dogcatdogcat and your regular expression is cat, then the matched string is the first cat in the input string.  If your regular expression is cat$, then the matched string is the second cat.
 
So, when you tried to match the regular expression $, you were trying to match to an empty string at the end, which is why your function failed.  When you enter \$, the regular expression treats the $ as a character.


Modified.vi:
http://forums.ni.com/attachments/ni/170/289802/1/Modified.vi
.



Relevant Pages


Loading