You can do that using the following pattern in the
compile static method of the
The pattern is
(.|n|r)*? which means: any character (the .) or (the |) n or r. Zero or more times (the *)
of the whole stuff.
Example: The following method strips the multiline comments (those between /* and */) from a string passed in and returns the resulting string:
1 2 3 4 5 6 7 8 9 10
Note: rn works for Windows systems. n works for Unix-like systems. r works for Mac systems.