0

there is an OR operator | in regular expression (re module), but why there is no AND operator?

Monther
  • 3
  • 3

1 Answers1

0

Because you can't have one section of a string be both 'abc' and 'def'. It is either one or the other.

Tim Roberts
  • 48,973
  • 4
  • 21
  • 30