Regex for Find and Substring

Hello Guys,

Can I use regex for find two types of string than substring it

Example: I have raw text



I want to get the bolded text that text start with code :20A: or :20B:

Can I achive it with regex?


You can use the pattern below:



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