J
Jarlaxle
I'd like to issue a challenge (I already have a class to do it so I'm not
asking just to get the code)...
Write one regex expression that removes all comments from a string.
Hints:
1. /* a block can contain newlines and must match till next */
2. // must match until end of line
3. I have seen some that claim to remove all comments but are inadequate for
one reason...(QUOTES!)
asking just to get the code)...
Write one regex expression that removes all comments from a string.
Hints:
1. /* a block can contain newlines and must match till next */
2. // must match until end of line
3. I have seen some that claim to remove all comments but are inadequate for
one reason...(QUOTES!)