Since TYPO3 9.5 LTS suggests to use the Symfony Expression Language for TypoScript conditions.
Old Syntax:
// Matches any applicationContext with a rootContext of "Production", for example "Production/Live" or "Production/Staging":
[applicationContext = Development*]
// Matches any applicationContext starting with "Production/Dev"
[applicationContext = /^Production\/Dev/]
I've tried the following without success:
[applicationContext == "/^Development\/Docker/"]
[applicationContext == "Development*"]
[applicationContext == "Development/*"]
I didn't found any examples. I'm not sure, if the tests for conditions are already based on the expression language. (https://review.typo3.org/#/c/57787/)
Would be nice if someone has an advice how to use the feature to add conditions like before
You need to use the matches
comparison operator of the Symfony Expression Language. This way you can use regular expressions for partial matches:
[applicationContext matches "/^Development/"]
This will match any Development
context.