regex - Javascript regular expression - match */ -


i trying write tool whereby enter incorrectly formatted css 1 text area, hit submit , runs few regular expressions , feeds minified , "maxified" css in 2 other textareas. first removes white space (that is, unless within line - white space @ end of line , tabs within line removed). proceeds fall on over next line - reg = new regexp("\*\/", "\g");. error uncaught syntaxerror: invalid regular expression: /*//: nothing repeat. can't figure out why is. have idea how resolve this? in advance.

if want */ use reg = /\*\//g; , if want /* use reg = /\/\*/g;.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -