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 1

Status
Not open for further replies.

999Dom999

Technical User
Apr 25, 2002
266
GB
I really need to get my head around regex but in the meantime please can someone help me with a validation form I need this line to change so that it matches all punctuation except for these 3 characters "&", "'" and "/"

var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/ ;

Cheers!
 
I have no idea regex is not my expertise this is someone else's code it was under the validation for email section. I need something similar but to match all punctuation except these three & ' /

 
Thanks for the links,

I mean all symbols really `¬!"£$%^*()_+=[]{}~#@':;?.>,<|\

I made mistake earlier the three I don't want to match are & - /

Thanks for any help.
 
Thank you so much Feherke, I will get reading up on the links above.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top