Paul's Programming Notes     Archive     Feed     Github

re.match vs re.search - Python

http://stackoverflow.com/a/180993/1364191

  • re.match - If zero or more characters at the beginning of string match the regular expression pattern.
  • re.search - Scan through string looking for a location where the regular expression pattern produces a match