Re: What's the difference in this "string match"ing ...
- From: Bruce Hartweg <doNOTuse@xxxxxxxxxxx>
- Date: Tue, 29 May 2007 11:51:55 -0500
MartinLemburg@UGS wrote:
Hello,
I traced down a problem I can not understand.
Why is the following different? (perhabs the question is foolish or
the answer is the easiest to find, but ...)
% string match {*\\} "a\\"
1
% string match "*\\" "a\\"
0
Thanks for any hint!
here's a hint
set a {*\\}
set b "*\\"
puts "length of a = [string length $a]"
puts "length of b = [string length $b]"
puts "a contains <$a>"
puts "b contains <$b>"
Bruce
.
- References:
- What's the difference in this "string match"ing ...
- From: MartinLemburg@UGS
- What's the difference in this "string match"ing ...
- Prev by Date: Re: tcllib jpeg package and JPEG comments ...
- Next by Date: Re: utter newbie expect question
- Previous by thread: Re: What's the difference in this "string match"ing ...
- Next by thread: utter newbie expect question
- Index(es):
Relevant Pages
|