Python | How to use re.findall() in python

  • re.findall() matches all occurrences of a pattern and returns list of matches pattern. Refer below snippet for syntax and output.
  • Below snippet extracts all the links available in "href" tag in the given text.