Demonstration query  alt text  The parameter does a straight
replace if you type in a value so the query still runs, but it
does force you to enter something before it will run.  Note: I
deliberately did not tag this with [comments].  share|improve
this question This answer shows waffles has had some trouble
confirming where comments start and end. –  Mark Hurd Jun 26 '10
at 6:09 Does anybody have js regexes to strip comments? – 
waffles Jun 26 '10 at 12:57 @waffles: I turned up this with a
quick search, maybe you can adapt it:… (that does the block-
style comments, but the -- line comments should be easier to
parse). –  Jon Seigel Jun 26 '10 at 15:43 @waffles I assume you
would have found this answer give it was listed as related to
Jon's pointer. I would assume that if you included a string
match in this regex first, that would skip the quoted comment
starts. –  Mark Hurd Jun 27 '10 at 1:24 add comment  1 Answer
up vote 2 down vote accepted  Barring the need to revert the
code that handles this, this should