Re: regex help needed



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
.



Relevant Pages

  • Re: Migrating VC6.0 -> Visual Studion 2008 - depricated functions
    ... only get a subset of the specifications in one and a different, exlusive, subset ... syntax is never even described and makes reference to pieces of syntax ("a ... adding these to my list as I develop a course in assembly code programming] ... "buffer overflow" in fopen. ...
    (microsoft.public.vc.mfc)
  • Re: Proposal: INHERIT, NOINHERIT
    ... Just a word of how J3's new features procedures work ... ... justifying the feature, and saying *exactly* what it is. ... Only after the above, propose syntax. ... the specifications it's hard to judge the syntax. ...
    (comp.lang.fortran)
  • Re: Proposal: INHERIT, NOINHERIT
    ... Just a word of how J3's new features procedures work ... ... Only after the above, propose syntax. ... the specifications it's hard to judge the syntax. ... write edits against the current draft of the standard. ...
    (comp.lang.fortran)