Re: r"<path>"
- From: Mark Thomas <mark@xxxxxxxxxxxxxx>
- Date: Tue, 30 Sep 2008 10:50:56 -0700 (PDT)
On Sep 30, 1:17 pm, Kyle Hayes <mrkyleha...@xxxxxxxxx> 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.
.
- References:
- r"<path>"
- From: Kyle Hayes
- r"<path>"
- Prev by Date: Re: r"<path>"
- Next by Date: Problems with encoding/decoding locales
- Previous by thread: Re: r"<path>"
- Next by thread: OS.SYSTEM ERROR !!!
- Index(es):