Hans <hans...@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 -- http://mail.python.org/mailman/listinfo/python-list