From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Joey Pabalinas <joeypabalinas@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: How to best match $( ... ) in a string
Date: Fri, 1 Jun 2018 11:01:45 +0200 [thread overview]
Message-ID: <CAKc7PVC3-YGMDPFaWtrWzXP0EE68xB=7HOqLwP5CD=SeWVfDRw@mail.gmail.com> (raw)
In-Reply-To: <20180601084914.mwmhix5iph32y4wl@gmail.com>
On 1 June 2018 at 10:49, Joey Pabalinas <joeypabalinas@gmail.com> wrote:
> On Fri, Jun 01, 2018 at 10:44:58AM +0200, Sebastian Gniazdowski wrote:
>> Hello,
>> the problem is possible quoting, e.g. $( echo \) ). Has anyone a
>> pattern that would handle some sort of quoting?
>
> You mean like a regex/glob to match the entire "$(...)" construct with those
> possible weird \) and such inside?
Yes, to not stop matching on \), etc.
--
Best regards,
Sebastian Gniazdowski
next prev parent reply other threads:[~2018-06-01 9:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20180601084641epcas5p1ca4cd48fa463123bbe980d132fd19473@epcas5p1.samsung.com>
2018-06-01 8:44 ` Sebastian Gniazdowski
2018-06-01 8:49 ` Joey Pabalinas
2018-06-01 9:01 ` Sebastian Gniazdowski [this message]
2018-06-01 9:50 ` Peter Stephenson
2018-06-01 10:56 ` Sebastian Gniazdowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKc7PVC3-YGMDPFaWtrWzXP0EE68xB=7HOqLwP5CD=SeWVfDRw@mail.gmail.com' \
--to=sgniazdowski@gmail.com \
--cc=joeypabalinas@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).