cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Regex Matching

carlo2
Level 2

Hello, I have the following problem. I want to copy the text from a word file and then extract a number in combination with a word from this text using RegEx. For this I used the action stage "Extract Regex All Matches" from the VBO "Utility - Collection Manipulation". Unfortunately, it throws this error.

What could be the reason?

The RegEx looks like this:

(?is)^(?=.*?\bWord\w*\b).*?\K(?<Nr>\b80\d{5})(?!\d)

3 REPLIES 3

Hi @carlo2 

If possible, could you please explain the issue in more detail with an example?

Best Regards,
Sayeed Bin Abdullah

Senior Consultant - Automation Developer
Wonderbotz

Hi, there error i am facing is: 

Internal : Could not execute code stage because exception thrown by code stage: parsing "(?is)^(?=.*?\bWord\w*\b).*?\K(?<Nr>\b80\d{5})(?!\d)" - Unrecognized escape sequence \K.

Could you please share the sample data here for the below line

I want to copy the text from a word file and then extract a number in combination with a word from this text using RegEx

Also try the below expression to see if you are still getting the error

(?is)^(?=.*?\bWord\w*\b).*?(?<Nr>\b80\d{5})(?!\d)

Sayeed Bin Abdullah

Senior Consultant - Automation Developer
Wonderbotz