[thelist] Error in regular expression on IE for Mac

Liorean Liorean at user.bip.net
Tue Feb 5 10:37:02 CST 2002


At 11:07 2002-02-05 +0000, Simon Dell wrote:
>does this work:
>var re = /(.){3,}/g;

Sorry, but that makes three or more matches of the pattern, making three
matches of "everything but newlines", which makes the entire string one
giant "x".

In this particular case you have to use a backreference.

// Liorean




More information about the thelist mailing list