Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

re cntrl character class only contains 7f ?

19 views
Skip to first unread message

Harald Oehlmann

unread,
Jun 13, 2013, 9:07:44 AM6/13/13
to
I supposed that the control character class of tcl re would contain
unicodes 0-1f,7f-9F
What is wrong here:
% regexp {^[[:cntrl:]]*$} \x01
0
...
% regexp {^[[:cntrl:]]*$} \x1f
0

% regexp {^[[:cntrl:]]*$} \x7f
1
...
% regexp {^[[:cntrl:]]*$} \x9f
1

So, \u0000 - \u001f is not in this character class ?

I feal I am really missing something...
I tried with tcl8.4,8.5,8.6, all like that...

This says, it should be the upper range
http://en.wikipedia.org/wiki/Unicode_control_characters

This says, it is only 0-1f:
http://www.beedub.com/book/3rd/regexp.pdf

Thank you for any insight...
Harald
0 new messages