I'm stuck with something obvious which I can't make working:
There is a text like: ".... blah-blah-blah... Grupper blah-blah-blah Butik ...
".
Grupper
is an optional token - can be omitted in text and Butik - is mandatory. So it should match Grupper
if there is one and Butik
always.
Expression like (Grupper)?[\s\S]*?(Butik)
never catches Grupper
, but without ? works fine (and fails completely, of course, when there are no 'Grupper' in original text).
How do I get it to work?