public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* How to specify a TAB in a regex and in a char class?
@ 2021-05-23 16:00 Peng Yu
  0 siblings, 0 replies; only message in thread
From: Peng Yu @ 2021-05-23 16:00 UTC (permalink / raw)
  To: libc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-23 16:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-23 16:00 How to specify a TAB in a regex and in a char class? Peng Yu

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).