[Ruby] regex question

shaners becker veganstraightedge at gmail.com
Mon Feb 12 17:44:54 PST 2007


this worked. thanks so much. this is why i like this mailing list so  
much.

> Thats because the match was greedy.  Try this:
>   <recommendations>(?m).*?</recommendations>

this did not.

> Or this:
>   <recommendations>(?m)[^>]*</recommendations>

regex are my next big project to wrap my head around.

thanks again.
sb

-----------
join the resistance. fall in love.
http://theresistancearmy.com/





More information about the Ruby mailing list