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 -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -