Please give me one regular expression which mathes these kind of name formats like:
1) M/S.KHALIL WARDE S.A.L.
2) Oliver Twist
The expression should allow alphabets, dot, space and / only.
thanks
Please give me one regular expression which mathes these kind of name formats like:
1) M/S.KHALIL WARDE S.A.L.
2) Oliver Twist
The expression should allow alphabets, dot, space and / only.
thanks
Perhaps:
^[A-Za-z. /]+$
That matches uppercase A-Z
, lowercase a-z
, dot, space, and slash. The +
means repeated one or more times (so this won't match an empty string). The leading ^
and trailing $
means the match is "anchored" to the start and end of the string, so it will check your whole string.
Hi
Go on, show us you've at least tried to solve this problem yourself.
Regards
Mark
What did you tried?
You can use RegexBuddy to help building regular expressions.