Mark Thomas mark at thomaszone.com
Tue Sep 30 19:50:56 CEST 2008

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.

More information about the Python-list mailing list