I code cucumber scripts for java
There is a following case for or selection
working @When("^(chrome|firefox|edge) browser started")
don't work @When("(chrome|firefox|edge) browser started")
Also, I don't understand function of ^ char, because
don't work @When("^browser") => feature when browser started
working @When("^browser started") => feature when browser started
working @When("browser started") => feature when browser started
^anchor just means "at the very start of the string." If you omit it, the pattern might still work, because by default the search will start from the beginning on the string anyway.