I want to match several words, that can be split with spaces as well as special characters like -
or $
(where all possible characters are not known).
Example text:
Test- a£nd Test auf den 01.01.2022
My current expression:
((w )+) auf den d*.d*.d*
But this only matches nd Test auf den 01.01.2022
.
How can I change the left part of the expression to match any number of words, that can also contain characters like -
or $
above? It’s not feasible to enumerate all possible characters, e.g. I can’t use ((w- £ )+) auf den d*.d*.d*
which would match everything in this case.
Regex link