08 Aug 2023 04:51 PM - last edited on 10 Aug 2023 07:37 AM by Ana_Kuzmenchuk
I am capturing string in format "Hello Mr. UserId DD:MM:YYYY"
I want to apply Regex to filter out "UserId" only. It's dynamic word. Please help me what regEx should I use?
GAP
Solved! Go to Solution.
09 Aug 2023 04:42 PM
Use
(?:-) ([A-Za-z0-9, ]++)
" - Welcome MrABC" -> "Welcome MrABC"
09 Aug 2023 04:43 PM
(?:Refused by) ([A-Za-z0-9]++)
Removed "Refused by" from input string
10 Aug 2023 02:08 AM - edited 10 Aug 2023 02:09 AM
Hey @patelg6,
You can use the following regex:
Hello (?:Mr\.|Mrs\.|Ms\.) ([^ ]++) \d{2}:\d{2}:\d{4}
Example: