![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re^4: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...) (js)by erroneousBollock (Curate) |
on Sep 13, 2007 at 14:47 UTC ( #638813=note: print w/replies, xml ) | Need Help?? |
It works just fine. Try pasting the following into your url bar: javascript:alert("ZBBBCZZ".match(/((.)\2*)/g))
That should alert the output of .toString() called on the array result. javascript:alert(("ZBBBCZZ".match(/((.)\2*)/g)).toSource()) -David Update: Does that imply that Javascript has different capture semantics than perl?
In Section
Meditations
|
|