[Ruby] regex question

shaners becker veganstraightedge at gmail.com
Mon Feb 12 03:23:20 PST 2007


i have two questions about regexs:

1. what's a good starting resource for learning regex? someone told  
me about some ajaxy site that teaches the beginning in and outs of  
regex. anyone know of that?

2. just in textmate, i'm trying to do a find and replace that needs a  
regex. its an xml file and i want to remove all of one type of tag  
and its contents. say the tag is "book":

<book>moby dick</book>

how do i say find all: <book>...anything here...</book>?

thanks
shaners


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




More information about the Ruby mailing list