[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: Positive lookahead in multiline strings (was gsub

Pit Capitain

7/27/2006 11:06:00 AM

Robert Dober schrieb:
> I came up with the perfect solution to replace the last occurence of a
> pattern (if it is simple, thus not of any interest to the OP of the OT).
> (...)
> Is there a way to anchor on the end of the string in multiline strings.

Robert, that's \z. See for example

http://phrogz.net/ProgrammingRuby/language.html#regularexpressi...

Regards,
Pit