Hello Guys,
Can I use regex for find two types of string than substring it
Example: I have raw text
:1Y:13141516
:20A:PUTRA2ZZZ
or
:1Z:13141516
:20B:PUTRI1ZZZ
I want to get the bolded text that text start with code :20A: or :20B:
Can I achive it with regex?
msan
(Michel SAN)
2
Hi,
You can use the pattern below:
(?<=^:20[AB]:)\w+

Yes it is possible.
Do you need them to match either result in the same piece of regex or separate is fine?
If they are separate try using the Two below regex options:
If you need a Regex piece to grab either try the below
1 Like