do you mean case insensitivity by the "not take into account the register of letters" if so then you can use The token (?i) that indicates the rest of the regular expression should be treated in case-insensitive mode. Placing this token at the beginning of a case-sensitive regular expression results in a completely insensitive match