@KasiaM40If you just need to get a True/False answer to if it matches, then I would use the StringUtils component. It has a method called IsRegExMatch that I tested and works with your expression. Unfortunately, there's not a method there that can retrieve the matches (that I am aware of anyway) within the StringUtils component. For that, I would just use a script given that you have the code already. As for why your use of the static method isn't working, it must be something in your solution that is incorrect, as I tested that as well and it works fine for me.