LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use match regular expression to search for parantheses

Solved!
Go to solution

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



-Matt
0 Kudos
Message 1 of 7
(4,485 Views)

So what are you wanting, the number between the parentheses? After the colon?

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 7
(4,464 Views)

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



-Matt
0 Kudos
Message 3 of 7
(4,443 Views)
Solution
Accepted by topic author Wolleee

Have you tried escaping the parenthesis?

 

RegexEscape.png

0 Kudos
Message 4 of 7
(4,417 Views)

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



-Matt
0 Kudos
Message 5 of 7
(4,393 Views)
0 Kudos
Message 6 of 7
(4,388 Views)

Wow,

 

I dont know how many times i passed over that.

 

Thank you again.



-Matt
0 Kudos
Message 7 of 7
(4,232 Views)