Regular Expression to match error ouput for Python
Posted: Thu Jun 12, 2003 2:15 am
Here is the regex Regular Expression you need in order to match error ouput for Python TextPad use. When you run Python on a file, and get an error - you will now be able to double click on the error line (the one with a line number in it) and TextPad will jump you to that line in the source code.
Configure>Preferences>Tools>Python>
^.*"\([^"]+\)", line \([0-9]+\)
(of course you had to create this run tool)
Configure>Preferences>Tools>Add
Command C:\Python22\python.exe
Param $File
Initial folder $FileDir
Configure>Preferences>Tools>Python>
^.*"\([^"]+\)", line \([0-9]+\)
(of course you had to create this run tool)
Configure>Preferences>Tools>Add
Command C:\Python22\python.exe
Param $File
Initial folder $FileDir