I have a string as below:
Pressure ( + or - ) 30 daN
Current ( + or - )
I wanted to get 30 daN value. I tried to write:
Regex.Match(FullText, “(?<=Pressure( + or - ))([\S\s]*)(?=Current ( + or - ))”).Value.Trim
But function detects parenthesis as code. How can I fix that?
Hey
You need to ‘escape’ the parentheses by using a ‘\’
Like this:
\(
\)
Take a look at this solution I have made also.
Hopefully this helps
2 Likes
Thank you so much for your help, have a nice day!
@Steven_McKeering
1 Like
system
(system)
Closed
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.