I want a regex that can parse ignoring the nested matches
I mean on this for example:
/*asdasdasd /* asdasdsa */ qweqweqwe */
to match the first “/*” with the last “*/” and not stopping to the first “*/”
Thanks…
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.
RegEx expressions will naturally be greedy, so you can just use:
If you wanted it to do what you’re afraid of and make the RegEx be lazy and stop after the first match you’d have to add an
?like: