fixed regexp to ignore attrs