have code
obj.property.style.split( /\s*;\s*/ ).forEach( function(s) {...
the problem is that the */ in the pattern is serving as a comment delimiter.
for example
/* comment this out please
obj.property.style.split( /\s*;\s*/ ).forEach( function(s) {..
OOPS - NOT commented out */
what’s the customary way to quote this in regexp?
The
*qualifier is a shortcut for{0,}1 so:However, as this makes it slightly less-than-usual, I’d really consider just not commenting out the code with
/* .. */comments.1
{n,}is specified in ECMAScript 5th Edition. However, MDC only lists{n,m}.