I'm trying to find a pattern that will match for any digits, except ":3"

I've tried this


But it doesn't work and I've no idea why

  • Does it have to be colon-3? Colon isnt a digit, so i would use [012456789]*
    – D. Ben Knoble
    Nov 13 '18 at 4:00
  • 2
    Please provide more info -- example text and what should be matched in that text.
    – Maxim Kim
    Nov 13 '18 at 6:44

Match all digits if there is no : before them


Add all digits except 3


Results of the last regexp


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.