Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #48855
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Subject | Re: how can I check if group member exist ? |
| Date | 2013-06-21 19:49 +1000 |
| References | <caa3e87c-922e-49e2-ae16-7502b1b365d3@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3659.1371808186.3114.python-list@python.org> (permalink) |
Hans <hansyin@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
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
how can I check if group member exist ? Hans <hansyin@gmail.com> - 2013-06-21 02:07 -0700 Re: how can I check if group member exist ? Peter Otten <__peter__@web.de> - 2013-06-21 11:25 +0200 Re: how can I check if group member exist ? Ben Finney <ben+python@benfinney.id.au> - 2013-06-21 19:49 +1000
csiph-web