Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

How could I use Regex to replace print statements with the newer print function?

I seem to have alot of python scripts with the older print statements (Which I wish stayed a statement) instead of the newer function.
How could I use regex to replace those statements with the print function, keeping the data to be printed?
This might well be an easier option for you :)

http://docs.python.org/2.7/library/2to3.html
(Mar 8, 2014 06:23 PM)Strike Wrote:  This might well be an easier option for you :)

http://docs.python.org/2.7/library/2to3.html
Seen that after I posted :3
- - - - - - -- - - -- - -- - - -



Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by FhackMar 2, 2022 03:52 AM 4 307 Mar 2, 2022 03:52 AM
Last Post: Fhack
[C#] by trucoJan 3, 2022 04:07 AM 2 258 Jan 3, 2022 04:07 AM
Last Post: truco
[C] by Tr0jandogJul 18, 2020 12:05 AM 4 224 Jul 18, 2020 12:05 AM
Last Post: Xora