regex - Performing validation with Regular expressions in vbscript -
i have validate string correct syntax is:
['#dog.attribute#'='1' , ['#cat.anotherattribute#' in ('1','2')] 'dog' , 'cat' stands special words in business rules...
i'm doing validations , want find in string, using vbscript regular expressions, following errors (going left right):
substrings can exist anywhere, starting
'#between
',#can't exist anythingthere exist 1 cardinal
#after cardinal # must exist
dogorcat(it case sensitive)after
dogorcatthere must dot . (without spaces on left , on right)after dot exist regex
[a-za-z\.\\]*(at least 1 character)and after
[a-za-z\.\\]*, string ends#', without else, 1#, 1'
this seems easy, i'm having problems developing it. can me out?
Comments
Post a Comment