"|" is expression is treated as a parameter separator to "regex" api command. Try instead: freeswitch at internal> regex m:/1234567890*123456*12*/^((\d{10})\*(\d{6})\*(1|3|12)\*)$/$1 $2 $3 $4 1234567890*123456*12* 1234567890 123456 12