BOT Regex for UK post codes

I see a ** Note : Capturing groups and any additional features that rely on capturing groups are not currently supported.** on the genesys page for Reg ex Quick reference

Are there plans to handle groups as the regex used for UK post code mapping uses groups?

UK Post code regex that is generally used and works as desired (checking on regexr site)
([Gg][Ii][Rr] 0[Aa]{2})|((([A-Za-z][0-9]{1,2})|(([A-Za-z][A-Ha-hJ-Yj-y][0-9]{1,2})|(([A-Za-z][0-9][A-Za-z])|([A-Za-z][A-Ha-hJ-Yj-y][0-9][A-Za-z]?))))\s?[0-9][A-Za-z]{2})

otherwise, is there a version to get me closest I can, asking if anyone already worked out. I will endevour to create a simplified closest version I can but regex is a dark art :slight_smile:

/edit
Looks like Genesys version ignores flags as well like /i to ignore case
I have created a couple of simpler regex which I think will cover needs, I need to test.

Would still like to understand the Genesys Regex engine implementation, or omissions it has over and above the linked page blurb.

Simon

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