How to write a regexp in TCL that matches word and whitespaces. For example I have
aaaa bbbb cccc
and I want to match “aaaaa “, “bbbb “, “cccc “.
And also please tell me what is the regex symbol for whitespace and non-whitespace. I can’t find it anywhere.
Thanks.
My thought would be to just search for groupings of word characters:
You can find the writeup for the Tcl regular expression syntax on the re_syntax man page