For client side we use javascript and for server side we use Outsystems function Regex_search. Simply darg and drop the function assign the given values ans use it.