From: Robert Dober Date: 2009-07-18T04:28:29+09:00 Subject: Re: regexp exclusion search - find matches NOT ending with a string? On 7/17/09, Glenn Jackman wrote: > At 2009-07-16 08:59PM, "David A. Black" wrote: >> On Fri, 17 Jul 2009, BrendanC wrote: >> > $(?> >> I would probably do: >> >> lines.reject {|line| line =~ /html$/ } > > Is the Ruby regular expression syntax documented anywhere? > > I was attempting to use a look-behind, but it's not supported. > > The syntax is not documented in the RegExp rdocs, and I haven't seen a > site that spells out all the nitty-gritty details and pokes into the > dark corners. > > I'm looking for the Ruby equivalent of: > http://www.tcl.tk/man/tcl8.5/TclCmd/re_syntax.htm > http://docs.python.org/library/re.html#regular-expression-syntax > http://perldoc.perl.org/perlre.html > > Does it exist? For Oniguruma I found this most helpful http://manual.macromates.com/en/regular_expressions#regular_expressions > > > -- > Glenn Jackman > Write a wise saying and your name will live forever. -- Anonymous Nice one Cheers Robert