Will all browsers (IE6+, FF3+, Safari 3+, Chrome) execute a javascript regex search across line boundaries in the searched string? Example:
var sourceStr = "This is some text \nOn multiple lines\nAnd the 2nd line.";
sourceStr = sourceStr.replace(/line/g, "xxx");
Also, are there any good references of what regex features are or aren’t supported in various browsers.
Yes, but if you use any char syntax – dot “.” in regex patterns, you may need to change it to
[\s\S]to match any chars across lines.