I want to set a statically defined value depending on the matching regex.
Currently Im using the translate filter plugin with a dictionary of 400 entries to set the value depending on the matching regex.
Is it possible to have multiple matching regex and therefore set multiple values?
Example String:
"This is a sample string"
Static mapping for regex to value:
.is. => "is"
.string. => "string"
Then my result should contain a list of all the values for the matching patterns
contains = ["is", "string"]
How could this be achieved?
Any ideas would be highly appreciated