I have two types of input string:
${place.holder}
${place.holder:defValue}
I need to extract only place.holder
whether it has a :defValue
or not, i.e. desired result in both cases should be:
place.holder
place.holder
This is the full match: https://regex101.com/r/hjWEO1/1/ I've tried negative lookahead, but it matches omly first symbol in group.