G
Guest
Hi,
I have a Regular Expression that will match the format a
user provides in a textbox.
Ex. Brown,Joe in the textbox
I would like the expression to have both whitespace and
non-whitespace options after the comma.
Any suggestions or maybe a different Regular Expression
that allows both non-whitespace and whitespace options
after a comma would be appreciated.
Thanks.
bebop
The Regular Expression I'm using:
Regex regex4 = new Regex("^[A-Z][a-zA-Z]*\\,+\\S+(|\\S)+
([a-zA-Z]*)$");
I have a Regular Expression that will match the format a
user provides in a textbox.
Ex. Brown,Joe in the textbox
I would like the expression to have both whitespace and
non-whitespace options after the comma.
Any suggestions or maybe a different Regular Expression
that allows both non-whitespace and whitespace options
after a comma would be appreciated.
Thanks.
bebop
The Regular Expression I'm using:
Regex regex4 = new Regex("^[A-Z][a-zA-Z]*\\,+\\S+(|\\S)+
([a-zA-Z]*)$");