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!

Check characters not in list

Status
Not open for further replies.

dechrist

Programmer
Sep 24, 2008
10
US
How can I check if a string contains characters not in a list? My string can contain a-z, A-Z, 0-9 and @, #, and a space, but nothing else.

Valid strings:
123@valid
another1

Invalid strings:
1 invalid*
another $ one

Doing it all inside a SQL statement (or two) is preferred.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top