I have a script with a regex
var re = /\/(\w+?)\//;
In IE5 Mac, that kills all javascript, anywhere on the page. No errors
but no functionality at all. Just the mere presence of that line without
it being called.
removing the "?", returns everything normal.
var re = /\/(\w+)\//;
Why could that be?
Is the default regex behaviour non greedy and the "?" really uneeded?
Cheers,
Jeff
var re = /\/(\w+?)\//;
In IE5 Mac, that kills all javascript, anywhere on the page. No errors
but no functionality at all. Just the mere presence of that line without
it being called.
removing the "?", returns everything normal.
var re = /\/(\w+)\//;
Why could that be?
Is the default regex behaviour non greedy and the "?" really uneeded?
Cheers,
Jeff
Comment