From: Peng Yu <pengyu.ut@gmail.com>
To: libc-help@sourceware.org
Subject: How to specify a TAB in a regex and in a char class?
Date: Sun, 23 May 2021 11:00:21 -0500 [thread overview]
Message-ID: <CABrM6wnwGjcGNPDAWPBDX9eb+fgHj5=aZ0SATJOzKJYWM5KZ7g@mail.gmail.com> (raw)
Hi,
With REG_EXTENDED, I don't find that \t can be used as a TAB.
Is the only way to specify a TAB character in a regex is to type the
TAB character literally? Any other better way to specify a TAB
character in a regex? (Note, the regex string is read from some input.
I am not talking about the native C code, as a TAB can be typed as \t
in a C string.) Thanks.
--
Regards,
Peng
reply other threads:[~2021-05-23 16:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CABrM6wnwGjcGNPDAWPBDX9eb+fgHj5=aZ0SATJOzKJYWM5KZ7g@mail.gmail.com' \
--to=pengyu.ut@gmail.com \
--cc=libc-help@sourceware.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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).