REGEX extractor not work

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

image

@egameiro

In the regex options…try selecting multiline or single line options…

That should get you values

image

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

Hi… Anil…
It doesn’t work, neither with singleline nor with multiple line

Thank you very much ptrobot… with your pattern it worked.

Grateful

@egameiro

Please try with this

(?<= NĂşmero\s*)\d+

Cheers

@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

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.