I am trying to use a regex to find text inside a string. For example, have this string:
one,two,three,four
If I want to see if it has one OR two, I can use “one|two”. How do I create a regex for determining whether the string has one AND two?
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.
= two lookahead assertions that match if both “one” and “two” are present in the string.