Convert the move matching to regexps.