Added flags to regex