08-06-2015 05:52 PM
Hi all,
I am currently looking for a particular pattern in a string i cant post the exact string, but say its something like this; match regular_pattern(5000):0
I am also searching for the a different pattern at the same time so i have to use match regular expression and the | function. I cant seem to figure out how to match this pattern because the match regular expression function doesnt allow parantheses unless i put them in brackets and that doesnt help me for this.
Any advice?
Thanks,
Matt
Solved! Go to Solution.
08-06-2015 06:24 PM - edited 08-06-2015 06:25 PM
So what are you wanting, the number between the parentheses? After the colon?
Mike...
08-06-2015 06:44 PM
Hi MIke,
Im looking for the entire string that i bolded. The parantheses are making it very difficult to look for though, because the match regular expression doesnt seem to let you look for them in a string like that.
-Matt
08-06-2015 07:16 PM - edited 08-06-2015 07:17 PM
Have you tried escaping the parenthesis?
08-06-2015 07:34 PM
Oligarlicky,
Genius, works great. Can i ask you why that works? Becuase ive been searching for documentation and i cant seem to find any on this.
Thank you,
Matt
08-06-2015 07:36 PM - edited 08-06-2015 07:37 PM
See last row in the first table here:
http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/regular_expression_patterns/
08-07-2015 11:09 AM
Wow,
I dont know how many times i passed over that.
Thank you again.