[Ruby] regex question

Neil Moomey neil at motznik.com
Mon Feb 12 10:35:49 PST 2007


I like the O'Reilly book "Mastering Regular Expressions" but it's not the
best quick reference book.  Regular expressions are the same with all
languages so don't be put off if it's not a Ruby book.

Neil

On 2/12/07, shaners becker <veganstraightedge at gmail.com> wrote:
>
> 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/
>
>
> _______________________________________________
> Ruby at zenspider.com - Seattle.rb non-commercial list
> http://www.zenspider.com/seattle.rb
> http://www.zenspider.com/mailman/listinfo/ruby
>



-- 
Neil Moomey
Software Developer
Motznik Information Services
8301 Briarwood Street, Suite 100
Anchorage, AK 99518
Ph. 907.344.6254  Fax: 907.344.1759


More information about the Ruby mailing list