Re: regex help needed
- From: rcook@xxxxxxxxxxx (Owen)
- Date: Thu, 28 Sep 2006 10:00:31 +1000
On Wed, 27 Sep 2006 13:11:17 -0600
"Gerald Wheeler" <GWHEELER@xxxxxxxxxxx> wrote:
I am looking for: ab1 in line1
and looking for: ab2 in line 2
actually ab1 and ab2 immediately follow the last "/" (there are
numerous "/" on the line (w/o quotes))
These are not working. can some explain what these say and what they
should say (syntax) to return the results I'm looking for: if ab1/ab2
are in the line, return true.
/^[^\#]*ab1/,@lines
/^[^\#]*ab2/,@lines
Presumeably you want a match against '/ab1'
In which case you might just get by with /\/ab1/
But you may need to provide a few more specifications and example data
Owen
.
- Follow-Ups:
- Re: regex help needed
- From: Jay Savage
- Re: regex help needed
- References:
- regex help needed
- From: Gerald Wheeler
- regex help needed
- Prev by Date: Re: regex help needed
- Next by Date: [Perl Win32]PPM: about the blocking ports or sth
- Previous by thread: Re: regex help needed
- Next by thread: Re: regex help needed
- Index(es):
Relevant Pages
|