More robust regext for tasks.