Regular Expressions can be a bit of fun too :-))
^([A-Z|a-z]{2}-\d{2}-[A-Z|a-z]{2}-\d{1,4})?([A-Z|a-z]{3}-\d{1,4})?$
Guess what this Regex does ?
It validates Indian Vehicle Registration Number ;-))
^([A-Z|a-z]{2}-\d{2}-[A-Z|a-z]{2}-\d{1,4})?([A-Z|a-z]{3}-\d{1,4})?$
Guess what this Regex does ?
It validates Indian Vehicle Registration Number ;-))
Comments have been disabled for this content.