Fix legacy regex