Regular expression protocol