[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help about regexp
From: |
Barry Margolin |
Subject: |
Re: help about regexp |
Date: |
Tue, 28 Aug 2007 23:49:37 -0400 |
User-agent: |
MT-NewsWatcher/3.5.2 (PPC Mac OS X) |
In article <fb2o13$spf$1@news.cn99.com>,
sunway <sunwayforever@gmail.com> wrote:
> i want to use regexp to match .*\*$ but not match .*shell\*$
> how to write the regexp?
Regular expressions are very poor at finding non-matching strings. It's
possible, but very complex. Usually it's easier to write your
application so that it checks whether it's looking at .*shell\*$ and
skip the line.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
Re: help about regexp, Peter Dyballa, 2007/08/29