0

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

I've tried this

/\v(:3)@!&\d

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
2

Match all digits if there is no : before them

/\v:@<!\d

Add all digits except 3

/\v:@<!\d|[0124-9]

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.