9
9
9karamba2019-01-18 00:05:56
JavaScript
9karamba, 2019-01-18 00:05:56

Is it possible to somehow exclude the desired regular expression in the js file?

I wrote a function in a js file that searches for all comments in the same file (with a function) and displays them. Specified '//' in the regular expression. The question is: How do I exclude my regular expression string from a potential comment?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Makarov, 2019-01-18
@MDiMaI666

pass the line number to be ignored. It's better to use flags in comments. to ignore all comments/lines that start with //ignore.
or //igroneNextRow

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question