How to remove duplicate characters in a string strictly using regexp in TCL?
e.g., I have a string like this aabbcddeffghh
and I need only characters that are "abcdefgh
". I tried with lsort unique
, i am able to get unique characters:
join [lsort -unique [split $mystring {}]]
但我只需要使用 regexm
命令 。