update Regular expression matching