Is it possible to write a regular expression that will validate lenght instead of value ?
I need to check that length of passed in value is greater than zero or its length equal to zero.
I know how to search for a specific value but don't know if I can check for length...
I need it to be a regular expression as I have a validator class that takes rules(regexp) and then I can execute a rule on a specific value.
Any help will be greatly appreciated.
Sergei
I need to check that length of passed in value is greater than zero or its length equal to zero.
I know how to search for a specific value but don't know if I can check for length...
I need it to be a regular expression as I have a validator class that takes rules(regexp) and then I can execute a rule on a specific value.
Any help will be greatly appreciated.
Sergei