|
From: | Kevin Rodgers |
Subject: | Re: regexp and strings you don't want |
Date: | Wed, 27 Aug 2003 09:13:56 -0600 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Chaz wrote:
Barry Margolin <barry.margolin@level3.com> wrote in message news:<A9u2b.399$mD.8@news.level3.com>...This is something that regexps by themselves are pretty bad at.For example, how can I search for a paragraph beginning with "The" that does NOT include the word "top"?That's too bad. I wouldn't have thought it so complicated to have some function like [^"string"], or to list strings as options, maybe ["dog""cat""turtle"]. These would be quite handy.
I don't think you understand the theory behind regular expressions, which are based on regular languages and the finite state automata that recognize them. But as Barry said, it's easy to write a function that does what you want. -- Kevin Rodgers
[Prev in Thread] | Current Thread | [Next in Thread] |