There's a not yet documented "RegExp.escape" in prototype. Check it out.
- kangax On Apr 9, 10:00 am, jdalton <[EMAIL PROTECTED]> wrote: > $() method is for dom elements, not > strings.http://www.prototypejs.org/api/utility/dollar > > I don't use String#sub at all so I am less familiar about its workings > but this doesn't seem right. If you pass it a string it should escape > all regexp special chars l similar to mootools method > String#escapeRegExp. > > Please read about submiting a ticket > here:http://www.prototypejs.org/contribute > and please include a link to this discussion in the ticket. > > Thanks. > JDD --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
