Programming in Python
0 of 222 complete

Section 11: Regular expressions · Notes

Section notes

  • A regular expression is a small language for describing search patterns.
  • re.search() looks for a pattern; re.findall() extracts every match.
  • Core symbols: ^ $ . * + ? \d \s [ ].
  • Useful for pulling e-mail addresses and numbers out of long texts.

Your progress is saved in this browser. Accounts are coming so it follows you across devices.