Mechanize-Browser question..

Tal Einat taleinat at gmail.com
Sun Jul 9 10:19:32 EDT 2006


bruce wrote:
>   r2 = br.follow_link(url_regex=re.compile(r"\*"),nr=1)   <<<<<<<<<<<<<<<

Seems to me your regex is buggy. You are using a "raw string" yet you
still escape the asterisk ('*') with a backslash? This will only match
a string which contains an asterisk, while I'm guessing you're tring to
match all strings.

Try removing the backslash.


P.S. In future postings, be more verbose: What are you trying to do?
What is the unexpected behavior that you are seeing? etc.

- Tal




More information about the Python-list mailing list