V
Vertica Garg
I am trying to validate that the string contains characters [A-Z a-z 0-9 /
.. -] only. If there is any other charcter in the string, I have to print the
error message. No special characters like *, &, $ etc should be allowed.
Example:
$code=Hello*Hi
$code=567$fg
$code=@ghyt
For each of the above, I want to print error message.
Is there any easy way of doing it using regular expressions?
Regards,
Vertica
.. -] only. If there is any other charcter in the string, I have to print the
error message. No special characters like *, &, $ etc should be allowed.
Example:
$code=Hello*Hi
$code=567$fg
$code=@ghyt
For each of the above, I want to print error message.
Is there any easy way of doing it using regular expressions?
Regards,
Vertica