lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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!
>