What would be a regex that matches “nl” OR “fr” (without the quotes) but nothing else, case insensitive?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Alternatives in regular expressions are expressed as expressions separated by the
|character.Case-insensitivity is specified in different ways, in different languages. One way that will work everywhere is to be explicit.
If you want “the whole string” to be one of those two phrases, then you must anchor it.