Regex to validate both CF and Oracle UUIDs
Hello, all,
TSIA. I once wrote some CF code that would validate a UUID as long as it was in either CF (8-4-4-16) or Oracle (8-4-4-4-12) format.
I have since lost that code, and I'm not quite wrapping my head around a simple regex that will validate both formats.
REMatchNoCase("^[0-9a-z]{8}-([0-9a-z]{4}-){3}[0-9a-z]{12}$",form.str)
.. will match the Oracle format. But I do remember there being a way to validate both formats without using a long regex and the pipe, typing out both formats. Please help me with this.
V/r,
^_^
