how can I check if group member exist ?

Ben Finney ben+python at benfinney.id.au
Fri Jun 21 05:49:26 EDT 2013


Hans <hansyin at gmail.com> writes:

> I'm doing a regular expression matching, let's say
> "a=re.search(re_str,match_str)", if matching, I don't know how many
> str/item will be extracted from re_str

Can you show an example of the pattern, and several examples of text you
want to match? This will help to understand your issue.

Also, your terminology is using some confusing names. Try:

    match = re.search(pattern, text)

That will use names which make it easier to think about the code.

-- 
 \     “Ours is a world where people don't know what they want and are |
  `\       willing to go through hell to get it.” —Donald Robert Perry |
_o__)                                                          Marquis |
Ben Finney




More information about the Python-list mailing list