It seems that the "contains" method on Liferay Expression Builder does not accept regular expression. What are the alternatives?

It seems that the “contains” method on Liferay Expression Builder does not accept regular expression. What are the alternatives?

I think you can use regex using match function

i.e. match([phoneNumberField], “^([1-9]{2}) (?:[2-8]|9[1-9])[0-9]{3}-[0-9]{4}$”)

ref: Expression Builder Validations Reference - Liferay Official Documentation - Liferay Learn