Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

It sounds like you want re.findall():

findall(pattern, string, flags=0)
    Return a list of all non-overlapping matches in the string.

    If one or more groups are present in the pattern, return a
    list of groups; this will be a list of tuples if the pattern
    has more than one group.

    Empty matches are included in the result.

As far as the actual regular expression for identifying email addresses goes... See this questionthis question.

Also, be careful using str as a variable name. This will hide the str built-in.

It sounds like you want re.findall():

findall(pattern, string, flags=0)
    Return a list of all non-overlapping matches in the string.

    If one or more groups are present in the pattern, return a
    list of groups; this will be a list of tuples if the pattern
    has more than one group.

    Empty matches are included in the result.

As far as the actual regular expression for identifying email addresses goes... See this question.

Also, be careful using str as a variable name. This will hide the str built-in.

It sounds like you want re.findall():

findall(pattern, string, flags=0)
    Return a list of all non-overlapping matches in the string.

    If one or more groups are present in the pattern, return a
    list of groups; this will be a list of tuples if the pattern
    has more than one group.

    Empty matches are included in the result.

As far as the actual regular expression for identifying email addresses goes... See this question.

Also, be careful using str as a variable name. This will hide the str built-in.

added 155 characters in body
Source Link
johnsyweb
  • 142.8k
  • 26
  • 197
  • 253

It sounds like you want re.findall():

findall(pattern, string, flags=0)
    Return a list of all non-overlapping matches in the string.

    If one or more groups are present in the pattern, return a
    list of groups; this will be a list of tuples if the pattern
    has more than one group.

    Empty matches are included in the result.

As far as the actual regular expression for identifying email addresses goes... See this question.

Also, be careful using str as a variable name. This will hide the str built-in.

It sounds like you want re.findall():

findall(pattern, string, flags=0)
    Return a list of all non-overlapping matches in the string.

    If one or more groups are present in the pattern, return a
    list of groups; this will be a list of tuples if the pattern
    has more than one group.

    Empty matches are included in the result.

Also, be careful using str as a variable name. This will hide the str built-in.

It sounds like you want re.findall():

findall(pattern, string, flags=0)
    Return a list of all non-overlapping matches in the string.

    If one or more groups are present in the pattern, return a
    list of groups; this will be a list of tuples if the pattern
    has more than one group.

    Empty matches are included in the result.

As far as the actual regular expression for identifying email addresses goes... See this question.

Also, be careful using str as a variable name. This will hide the str built-in.

Source Link
johnsyweb
  • 142.8k
  • 26
  • 197
  • 253

It sounds like you want re.findall():

findall(pattern, string, flags=0)
    Return a list of all non-overlapping matches in the string.

    If one or more groups are present in the pattern, return a
    list of groups; this will be a list of tuples if the pattern
    has more than one group.

    Empty matches are included in the result.

Also, be careful using str as a variable name. This will hide the str built-in.