What is wrong with my Validator
![]()
I created a validator called TimeSpent.
I entered a regular expression (\d*h)|(\d*m)|(\d*h[ \t]\d*m) what the expression is meant to validate is that the user entere the value of Time Spent as : 3h OR 3m OR 3h<space>3m When I test this using "Try the Regular Expression on sample Text" within the "Attribute Customisation" window and I enter 3h 3m no ettor(red cross) is shown BUT when I create the WI and enter 3h 3m , the red cross appears |
3 answers
![]()
I can reproduce this issue on RTC 6.0.1. I have tried a few other options such as the below, but while they work in the sample section, they do not work in the work item itself.
(\d*h)|(\d*m)|(\d*h[ \t]{1}\d*m)
Let me create a defect for it.
|