I'd like to match any non-empty, multi-line string fully. In PHP-Flavour I'd do it with the \X token, which matches any characters including line breaks. Unfortunately, I need to use Java, where the \X token does not work.
Example of a string I would like to match fully (Match 1):
This is a
multi-line
string with some charakters like $ and / and ´
to match fully.