Forum Discussion
hooleylist
Mar 23, 2010Cirrostratus
Yes, the string match command is more efficient than the regexp by a factor of 10 in a simple tclsh test:
% time {regexp {(?:^\w\w\.domain\.com$)} aa.domain.com} 1000
20 microseconds per iteration
% time {string match -nocase {[a-z][[a-z].domain.com} aa.domain.com} 1000
2 microseconds per iteration
Aaron