I'm having trouble to write a regex for golang because ? is not a quantifiable token.
The scenario i want to match:
foo.bar.com local.foo.bar.com local.local.foo.bar.com app1.local.foo.bar.com app2.local.foo.bar.com
I've tried the following but regex101.com with golang flavour throws the error ? is not a quantifiable token.