Interesting to see two regexperts slogging it out :) Seriously though, I have to confess I have a real block when it comes to regexp. There seem to be so many variants of ways of doing things. This example is the sort of thing I have done in the past, but never so elegantly. Trouble is I am not entirely sure what is going on in this syntax. I wonder if one of the two bright guys here could help with a little explanation of for example:
a. the square brackets causing the match? b. the 1 c. look ahead? d. why does the 1 return block without the $ I would really like to get my head around this stuff. If you know of a good tutorial/guide that would be helpful too. The problem I find is that so many of the guides go over the same basic stuff, I seem to read loads of things and never get to the real meaty bits, or the explanation of the meaty bits then goes over my head. I don't mind admitting to being dumb! Thanks Tonypm -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.