[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is there a patch for "str" in "str" expressions?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 14 Jun 2022 20:27:26 -0300
> Subject, basically. It's similar to the behavior found in Python, I'm just curious if there's an existing patch for it. Otherwise, are there resources that can help me make one?
Do you mean this?
x = string.gsub("home = $HOME, user = $USER", "%$(%w+)", os.getenv)
--> x="home = /home/roberto, user = roberto"