Regular expression for python string lit

Category: Python - Education

For quick-and-dirty processing of Python source files, it can be convenient to have a regular expression that matches Python string literals. This script provides such a regular expression. The example use case above shows how it could be used to rename a variable in a P shows hoe. Date: 01 May, 2012


Regular Expression - Python String - String Manipulation - Regular - Expression

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Online MYSQL Database Manager is multi-platform compatible.

developer Developer: http://www.creativephp.c...
license License: Freeware
operating systems Operating System: All


This class wraps up a complex boolean word expression, creating an internal regular expression, and provides methods that allows you to perform matches and searches on it.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Email validation with regular expression script allows you to validates email using regular expressions.

developer Developer: phptoys.com
license License: Freeware
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


This snippet uses the non-greedy matcher, and the "m" option to treat strings as multi-lines, so it may not work with all regex parsers.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


"Templating" (copying an input file to output, on the fly inserting Python expressions and statements) is a frequent need, and YAPTU is a small but complete Python module for that; expressions and statements are identified by arbitrary user-chosen regular-rexpressions.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


On each keystroke, all matches of the given text are highlighted, and the corresponding replacements are performed.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


The behavior is similar to the one implemented by the Panels module.

developer Developer: ftp.drupal.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


This script allows you to get SYSTEM environment value, as if running under Service or SYSTEM account.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script provides a buffered stream that supports multiple forward-only readers.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All