View Single Post
Old Mar 27th, 2008, 6:41 PM   #6
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
Re: Regex, or I'm thick

From wikipedia.org:

[^ ] 	Matches a single character that is not contained within the brackets. For example, [^abc] matches any character other than "a", "b", or "c". 

[^a-z] matches any single character that is not a lowercase letter from "a" to "z". As above, literal characters and ranges can be mixed.

^[hc]at matches "hat" and "cat", but only at the beginning of the string or line.

http://en.wikipedia.org/wiki/Regular_expression
OpenLoop is offline   Reply With Quote