Thats the reason why we suggested a pattern which is using Crew as an Anchor
May you help us by elaborating on why working with groups is not possible at your end.
We do see handled the case with the pattern and refering to group as e.g.
@mce As you said the existing expression might change to like this /45/P&OCrew/LBS/287 or number of slashes might vary. I am thinking, always you need the number at the end (correct me if wrong), no matter if it vary
Use the below expression which it can handle all the scenarios : \d+$
Thank you for the Sample, the expected Output. But I think we need more information on the Pattern and any extra requirements you have.
There are many talented people on the UiPath Community forums who can help with a pattern and have contributed a reply (@ppr and @Gokul001) but they need as much information as possible to make a strong pattern This information should be in the first post.
1 Minute invested in Original Post = 2+ Minutes saved later
From your subsequent information/questions I have created two patterns which may suit. These patterns both rely heavily on the text “P&OCrew/” and slashes “/”.
Your Information / Requirements are:
Providing confirmation that “P&OCrew/” is a constant is valuable information.
I have assumed that there is more than three variants and not just “LBS” or “MCCC” or “MI”.