matches_regex check
Posted: Fri Oct 05, 2012 12:16 am
I am trying to get a regular expression to work in a Data Rule. The object is to create a matches_regex check for a date in DMY format with / delimiter.
This works in various online regex testers but not in Information Analyzer data rules. For example the dates 17/11/11 and 17/10/2011 are reported (in View Test Results for the Data Rule Definition) as not meeting the rule, while 19/09/2011 is reported as a match.
Can anyone shed any light on what might be happening?
Thank you for your time.
Code: Select all
placeholder matches_regex "^(0?[1-9]|[12]\d|3[01])/(0?[1-9]|1[012])/((19|20)?\d\d)$"
Can anyone shed any light on what might be happening?
Thank you for your time.