Which regex expression to use to not select the space in the text?

For instance I have the following text :


Which regex expression to fill in to remove the space?
Basically I’m only interested on the number between badge number and Current position

Thanks in advance for your prompt help as this robot is available in PRD for users.


Can you try the following pattern?

(?<=Badge number .*)\d+(?=.*Current)

Note : This works in .net regex. However might not work in other language. Please check it using proper tester.


as an alternate:
we go for more, and trim it

we bring the digit within a group

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