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
  • 34,376
  • 3
  • 17
  • 24