I want to extract certain tokens from a string in my DMN Decision tables using Regex. I use FEEL-Scala currently as the language.
Input : Your penalty for Form 940
Expected Output : 940
In the above example, i want to extract any number which follows the word ‘Form’. Plz note that, the number can be any, so i cannot really use ‘contains’.
Can someone help how can i achieve this in DMN Decision tables.
The function extract() is not available yet. It will be added with the new version of the FEEL engine 1.14. (If you look at the docs for version 1.13 then you will not find this function.)
Until then, you could try to use the replace() function instead.