egameiro
(Eduardo)
March 8, 2023, 6:50pm
1
Hello friends
I made a REGEX to extract a number from a string, in the editor it show that my pattern is OK, but when I run it it brings me a null result.
Could anyone give me a hint as to why.?
Below is a screenshot of the editor and my pattern
Grateful
The variable in Debug
Anil_G
(Anil Gorthi)
March 8, 2023, 6:57pm
2
@egameiro
In the regex options…try selecting multiline or single line options…
That should get you values
Try with either of these not both together
cheers
Your input text might contain another type of line breaks. Test to add \r?
NĂşmero\r?\n(\d+)
1 Like
egameiro
(Eduardo)
March 8, 2023, 7:03pm
4
Hi… Anil…
It doesn’t work, neither with singleline nor with multiple line
egameiro
(Eduardo)
March 8, 2023, 7:07pm
5
Thank you very much ptrobot… with your pattern it worked.
Grateful
@egameiro I faced same issue.
There is possibility your regex is not valid one.
Even it was highlighting in my case.
Please try System.text.regularExpression.match(var, “yourregex”).value
system
(system)
Closed
March 11, 2023, 7:09pm
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.