06-02-25 10:51 AM
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)
Answered! Go to Answer.
06-02-25 12:10 PM - edited 06-02-25 12:12 PM
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
06-02-25 11:42 AM - edited 06-02-25 12:08 PM
Hi @carlo2
If possible, could you please explain the issue in more detail with an example?
Best Regards,
Sayeed Bin Abdullah
06-02-25 11:53 AM
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.
06-02-25 12:10 PM - edited 06-02-25 12:12 PM
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