String: (0/0/26)*15
MyRegEx: (?<!\*)\d+
I’m trying to match all digits except when preceded by a * (eg: 0, 0, 26)
When I use my regex with a backwards qualifier its matching 0, 0, 26, and 5.
Where am I messing up?
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.
Because the
'5'in'15'does not have a'*'before it.Wrap word boundaries around your
\d+pattern:to get the desired result.