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
Post a Comment