Regex exception
On Fri, 16 Oct 2009 20:26:04 -0400, Ron Rosenfeld
wrote:
If you want to exclude any line that contains FAO, you could use the Replace
method with this regex:
".*FAO.*"
It will return a null string for any string that contains FAO.
Or you could use the Test method -- but the result would be False.
Just to elaborate on the use of the Test method. If the string is to be
accepted (i.e. does NOT contain FAO), then the result of the Test method will
be false.
--ron
|