Fix #2457 (add real regex support to the autocorrect plugin)