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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regular expression

Status
Not open for further replies.

laputa

Programmer
Joined
Mar 16, 2003
Messages
1
Location
HK
how can you write a regular expression to check whether a scalar variable contains "Any other character on the keyboard bsides a whitespace character and double-quotes, and single-quotes"?
 
Laputa,

Sorry to be suspicious -- but is this a college or Uni assignment? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
/[^\s]|[^"]|[^']/

this worked for me adam@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top