dhtapp
10/19/2003 2:10:00 AM
"Simon Strandgaard" <none> wrote in message
news:3f91e754$0$69913$edfadb0f@dread12.news.tele.dk...
> > From: Zach Dennis [mailto:zdennis@mktec.com]
> > I noticed that Ruby supports lookaheads (??=), but does ruby support
look
> > behinds?
> >
> > I can't get the syntax (?<=) to work. Is the syntax possibly different?
>
> AFAIK..no.
This was a useful exchange.
My past experience with regexes has been strictly "pragmatic", meaning I
would dink with a regex, when required, just enough to get the flipping
thing up and running predictably on a cross-sample of data. I've just
acquired (belatedly) Friedl's 2nd ed. "Mastering Regular Expressions", and
my pending mini-project is to work through the book with irb open, playing
as I go. Friedl lists a disheartening number of flavors in regex engines,
but I figure if I can get a handle on Ruby first and Java's newest regex
engine second, I'll be pretty well ahead of the game...hooray for
sabbaticals!
- dan