It can be done in an external method, but you can also enable Script(Python) have regular expression processing capability. See the instructions in the Product code.