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

php - mySQL problems with this code? -

java - Checkbox item adds to spinner -

java - Can't access ArrayList in other view? android null pointer exception -