How can I match only the exact inline code and match the two if’s twice, not as one match.
I want to get result with:
Array(
[0] => asd
[1] => asd
)
not
Array(
[0] => asdasd
)
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.
http://regexr.com?2uvuu — use the expression:
EDIT:
Considering that what you want to match inside the if statement “tag” might have white space, a slightly slower expression that should handle anything inside the “if statement” should be as follows (at RegExr):
If you then want to be able to capture other tags (or the character
<) inside the result (if the statement is “true”, you will want to use the (again slightly slower) expression (at RegExr):END EDIT