Regular Expression Matching AC.