Forum Discussion

S_Seydel's avatar
S_Seydel
Contributor
9 years ago

Regular Expression problem

Hi,   I try to use a regular expression to validate a specific date format, however I don't get it to work and would be thankful for any help.   TestComplete version: 12.0.122.7. Script language...
  • tristaanogre's avatar
    9 years ago

    Possibly a "dirtier" way of doing this same thing without having to use Regular Expressions (cool thing, very useful, but confuses me a lot, too), is to try and use the aqConvert.StrToDateTime method wrapped in some sort of exception handling. So, you try the conversion, if it succeeds, no exception, you log a "success" result. If it fails, raises an exception, you log a "fail" result.