r"<path>"
Mark Thomas
mark at thomaszone.com
Tue Sep 30 13:50:56 EDT 2008
More information about the Python-list mailing list
Tue Sep 30 13:50:56 EDT 2008
- Previous message (by thread): r"<path>"
- Next message (by thread): Change environment after setreuid
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sep 30, 1:17 pm, Kyle Hayes <mrkyleha... at gmail.com> wrote: > Is there a way to use the 'r' in front of a variable instead of > directly in front of a string? Or do I need to use a function to get > all of the slashes automatically fixed? Is this what you're talking about? str = "foo/bar" re = Regexp.new(str) => /foo\/bar/ -- Mark.
- Previous message (by thread): r"<path>"
- Next message (by thread): Change environment after setreuid
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list