-1

i am writing some code for a c++ project where the use of the std::regex library is involved. The goal is to match a sequence like:

AB123

so a regexp designed like [A-Z]{2}\d{3} should be good. The problem is that i want to exclude the string AA000 from the match, so i was wondering if there is a particular way to exclude a particular sequence amongst the group defined.

alex
  • 13
  • 2

0 Answers0