![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveRe: Regular Expression to search for double occurence of a pattern
From: Eckhard Lehmann <ecky-l@web.de>
Date: Fri Oct 28 2005 - 21:05:27 CEST
ink.paint@gmail.com schrieb:
regexp -all {name} $mystr
gives you the count of occurences.
> now i have the word "name" occuring twice in 'mystr'.
You want to try:
if {[regexp -all {name} $mystr] == 2} {
Eckhard
|