Re: Regexp trick
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Regexp trick
- From: beo wulf <beowulf@...>
- Date: Tue, 4 Jan 2011 22:52:49 -0800
resolved: gsub :-)
On Tue, Jan 4, 2011 at 10:44 PM, beo wulf <beowulf@intamp.com> wrote:
> Suppose I want to write a regex to do:
>
> a=b -> a="b"
> dir=/home/blah -> dir="/home/blah"
>
> i.e. take a string, split it based on the first "=", and stick the
> latter part in quotes -- can I do this as a regex?
>
> Thanks!
>