Regex: xxxx 9999 yyyy yyyy

Hi,

I need a regex expression for following case - there a three types of transactions:
1 - xxxx
2 - xxxx 9999
3 - xxxx 9999 yyyy yyyy

I need to process only the option 3.
“xxxx” is fixed text.
“yyyy” can be any string with different length including spaces.
“9999” can be any number with different length.

Any suggestions?
Thx. KR, Vanja

@VanjaV

try this

xxxx \d+ [A-Za-z\s]+

cheers

1 Like

Hi @VanjaV

Pls try this regex-
^xxxx\s+\d+\s+.+\s+.+$

Happy Automation

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.