Friday, 15 July 2011

regex - Exclude comma character from a non-whitespace string -


I need a regex expression that will validate that a string is not all spaces and that does not include a comma (,). I

^ (?! [\ S,] * $)

I do not have

I do not have all the white space and insurance

The option to use the code, this is an obstacle in a field.

This is what you need:

  ^ [^,] * [^,] [^,] * $   

"At least one letter which is not a place is not there and no comma is surrounded by any four But a comma "

No comments:

Post a Comment