[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

regex look behind

Zach Dennis

10/18/2003 4:53:00 PM

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?

Thanks

Zach


1 Answer

Florian Frank

10/19/2003 10:10:00 AM

0

On Sat, 2003-10-18 at 18:52, Zach Dennis wrote:
> I noticed that Ruby supports lookaheads (??=), but does ruby support look
> behinds?

No, it doesn't. Anyway, you can compile your Ruby 1.6.8 or 1.8 with the
new regex engine oniguruma that already supports it:

http://raa.ruby-lang.org/list.rhtml?name...