On Jan 20, 1:06 pm, Dmitry Trunikov <dmitry.truni...@gmail.com> wrote:
> Hi ALL!
> how can i obtain of matched substrings in RegExp object?
> the prototypejs masks original RegExp.match method.
> the original method returns array of matched strings. the new method
> just returns true/false only.
> thanks.

The JavaScript RegExp object doesn't have a `match` method at all
(neither on `RegExp` nor on its prototype[1]). You're thinking of
either `RegExp#exec`[2] or `String#match`[3].

[1]: http://es5.github.com/#x15.10
[2]: http://es5.github.com/#x15.10.6.2
[3]: http://es5.github.com/#x15.5.4.10

T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to