I need a quick way to count linebreaks. This is slug slow:
function findLinebreaks( str) {
var re='/\r\n|\n|\r\|\f/g';
var i=0;
while(re.match( str)){
i++;}
return i;
}
Cheers,
Jeff
function findLinebreaks( str) {
var re='/\r\n|\n|\r\|\f/g';
var i=0;
while(re.match( str)){
i++;}
return i;
}
Cheers,
Jeff
Comment