Check leading/ trailing space in a string

Blessyjees
Posted by Blessyjees under Regular Expressions category on | Points: 40 | Views : 4941
By using this regular expression you can validate the data with leading and trailing white spce

Reg.Ex= ^[^ ][a-zA-Z0-9'\- ]+[^ ]$

Comments or Responses

Posted by: T.saravanan on: 10/30/2011 Level:Silver | Status: [Member] [MVP] | Points: 10
Nice info...

Continue your great job in our DNF.

Login to post response