This is not purely a prototype question so if anyone wants to point me to a different location (other than "Google this" cuz I already did :), feel free. I just got the new PragProg book on Prototype and coincidentally was writing a fair amount of JS. Ok, there's a question in here somewhere:
I have to parse: [q]hello[q]hello1[/q]out[/q]for good and treat the [q] blocks as quoting levels for email. That means, I'll be substituting <div class=q1> for the first level, q2 for the second, etc. I'm hoping not to have to tokenize the whole thing. Is there a straightforward way to match and process the nestings using a function as a second argument to gsub? Thx -- View this message in context: http://www.nabble.com/Help-W--gsub-on-Nested-Expression-tf4773701.html#a13655999 Sent from the RubyOnRails Spinoffs mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
