Revise regex to take into account case-insensitivity.