Regex from String

Hi @Marek_Matuszak

Thank you for providing a Sample, the expected Output and a little about the Pattern (more information on the pattern is always better)

How does this pattern work for you?
(?<=Work Company )([A-Z]{3})(-\d{3})*
Preview / play with the results here :slight_smile:

Description: It will always grab the three capital letters after the words “Work Company” and IF followed by a “-” and exactly three digits it will grab those too.

image

If you want to learn Regex - check out my Regex Megapost for new users :slight_smile:

2 Likes