William Lupton <[email protected]> writes:

On Tue, 5 Mar 2019 at 14:05, Martin Bjorklund <[email protected]> wrote:

Christian Hopps <[email protected]> wrote:
>
> William Lupton <[email protected]> writes:
>
> >> The intent was "ascii-printable". Would be nice if there was an easier
> > way to specify this. :)
> >
> > Printable ASCII characters are ' ' (space) through '~' (tilde) so
> > naively [
> > -~] should work ... but perhaps that makes unacceptable assumptions
> > -about
> > the locale and/or character encoding? (Certainly it should be OK if we
> > can
> > assume UTF-8, because all printable ASCII characters retain their
> > ASCII
> > representations in UTF-8.)
>
> I think your suggestion is a good one!

Not sure I get it.  What exactly is the suggestion?


Presumably the suggestion of using the [ -~] ("space through tilde")
closure. I forgot to include other whitespace characters (CR, LF, FF) so if
those are to be included it could be [\s!-~] ("whitespace plus exclamation
mark through tilde").


I mis-poke earlier, it's all printable lowercase ASCII.

I'm going to use the pattern: '[ -@\[-\^_-~]*'

These 3 ranges seem to make pyang happy. I don't know why I need to break up 
the second range into 2 adjacent ranges like that to make pyang not complain, 
but complain it does if I just use: '[ -@\[-~]*'

Thanks,
Chris.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to