Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RegEx help

Status
Not open for further replies.

kss444

Programmer
Sep 19, 2006
306
US
I have this pattern objRegExp.Pattern = "[^<>/?&{};#-_]+"
I need help to add [A-Za-z] to it.

Everything I've tried so far has not worked.
Thanks,
KS

Ordinary Programmer
 
Also the special char above and any alphas can be anywhere in the string. 568U94#
I am wanting to take my string and remove all alphas and special characters. In the above pattern I have an ^ not sure if I need this.
Thanks again.

Ordinary Programmer
 
Got it. I think this will work just fine.

objRegExp.Pattern = "[^0-9]+"
Beating my head over something simple :)

Ordinary Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top