REGEX to catch whitespace or comments -


i'm trying create regex catch whitespace or comments (//). content of comment unknown (can contain character). want allow character only after comment, otherwise - whitespace. run regex on string contains new-lines. suggestions?

example:

whitespace // unknown comment 123@#$~ whitespace whitespace // comment whitespace 

if ones mentioned want capture, use : (\s*)(//(.*))*


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

jquery - ReferenceError: CKEDITOR is not defined -

android - Go back to previous fragment -