The value I’m trying to match to can either be a word OR it can be empty.
I need a regex that will do one of the following:
- Match the word ‘default’ or empty string
OR
- Match any non empty string that is not ‘default’
The non empty string is important because “” is the same as default in my situation.
Is there a regex for this?
Anything that helps point me in the right direction is appreciated.
Sure, the regex is pretty simple: