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