|
From: | arnold |
Subject: | Re: [bug-gawk] Does gawk character classes follow this? |
Date: | Wed, 13 Feb 2019 23:44:49 -0700 |
User-agent: | Heirloom mailx 12.5 7/5/10 |
Hello. Peng Yu <address@hidden> wrote: > Hi, > > I'd like to make sure the definition of character classes in gawk. Can > I use the following link as a reference for the definition? > > https://www.regular-expressions.info/posixbrackets.html No. Read The Fine Manual. > For example, does [:cntrl:] include \x7F? Why don't you test it and see? gawk 'BEGIN { print("\x7F" ~ /[[:cntrl:]]/) }' Arnold
[Prev in Thread] | Current Thread | [Next in Thread] |