AnsweredAssumed Answered

Dynamic Field regex

Question asked by Bryan Ramirez on May 10, 2017
Latest reply on May 11, 2017 by Yury Kats


I need to define a set of fields (for DICOM data) that would normally match this regular expression:

 

^[A-Z0-9]{3}[1359BDF][A-Z0-9]{4}$

 

Basically, it should match a field that is 8 "digits" of hexidecimal, where the 4th digit is odd. Entering this regex, along with the following, does not seem to work:

([A-Z]|[0-9]){3}[1359BDF]([A-Z]|[0-9]){4}

([A-Z]|[0-9])([A-Z]|[0-9])([A-Z]|[0-9])[1359BDF]([A-Z]|[0-9])([A-Z]|[0-9])([A-Z]|[0-9])([A-Z]|[0-9])

[A-Z-09][A-Z-09][A-Z-09][1359BDF][A-Z-09][A-Z-09][A-Z-09][A-Z-09]

 

How can I define this regular expression to do what I want, and be accepted by the HCI system?

Outcomes