01-07-2009 11:09 AM
Hi,
I'm currently programming a parser but the parsed text sometimes contains special characters like "?" for example
As a consequence, to match this expression I shoud force the "\" before this char.
Is there a way to simply disable the special characters in the Match Pattern.vi ? It'd avoid me to write a program to add "\" before any special char of my text...
Thank you in advance for your help.
Bim
01-07-2009 11:22 AM
01-07-2009 02:07 PM
I don't see the problem with having these characters in the 'string' being searched by Match Pattern. Are you wiring these into the 'regular expression' input? Perhaps I'm misreading your explanation; could you post an example?
Jim
01-08-2009 02:56 AM
Hi,
If you use regular expression you don't have the choice to put "\" before any special character, it's the regular expression syntax.
Thanks to use NI forums.
Aurélien J.
National Instruments France
01-08-2009 04:25 AM
Would it work to use the "Search and Replace String"-function?
/Y
01-08-2009 05:07 AM
Finally I get a result by adding "\" on these characters : [\.\?\\\^\[\]\+\*\$]
Thank you for your help