Fix regexp rule