decoder based on regexp