Bugs item #3472474, was opened at 2012-01-11 09:25
Message generated for change (Comment added) made by bewareofdoug
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=347247…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
Status: Closed
Resolution: Invalid
Priority: 1
Private: No
Submitted By: ACarter (a1carter)
Assigned to: Doug (bewareofdoug)
Summary: Using
regex "(.*)" with replace.py
Initial Comment:
When using regex on replace.py, and using this replacement: "(.*)"
"Something here", nothing happens.
It gives "Getting 60 pages from <wiki>...", and goes no further, just
stays there.
When using verbose, it prints "Requesting API query from <wiki>.", and
then goes no further, just like before
I have tested a lot of small differences, and the error only occurs when the text to find
is exactly "(.*)". If you use, for example "{{(.*)", it works fine.
The full arguments were:
'replace.py -regex "(.*)" "Something"
-cat:"Category"'
I'm or r9811, 2011/12/17 (15 o'clock if that makes a difference), Windows, Python
2.7.2
Thanks
----------------------------------------------------------------------
Comment By: Doug (bewareofdoug)
Date: 2012-01-12
10:36
Message:
I've often run across this mainly because I continue to forget what is
happening. It seems at first glance like it should work but when you
remember that .* matches 0 or more of anything, you realize that it is
matching literally "anything and nothing" Normally, what is really wanted
is .+ that is 1 or more of anything, this will match the entire content of
a page when dotall is true.
Marking as closed as invalid
----------------------------------------------------------------------
Comment By: ACarter (a1carter)
Date: 2012-01-12 09:19
Message:
I've reckon out this is probably because of the immense processing power it
would take replacing everything in a page. It's probably solveable a
different way anyway
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=347247…