This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

quite simple question (idents)

Old posts that have not been replied to for several years.
Locked
m
misterys
Voice
Posts: 23
Joined: Sun Mar 30, 2003 2:43 pm

quite simple question (idents)

Post by misterys »

hey,
i think it's a quite simple question :)

set list {
\[a-z\]\[0-9\]\[0-9\]\[0-9\]\[0-9\]
......
}
.....
foreach [censored] $list {
if {[string match * ($[censored]@*" $text] } {
....


how can i add the possibiliy of ~ in front of $[censored]@*
i dont want to add it in the list :roll:

or how can i define "or" in tcl ?

thanks :)
Last edited by misterys on Mon Feb 14, 2005 10:01 am, edited 1 time in total.
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Re: quite simple question (idents)

Post by De Kus »

misterys wrote:or how can i define "or" in tcl ?
looking for The Manual?
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Not sure here what you are exactly trying to do over here, but some of these might be it if I am correct:

Code: Select all

foreach [censored] $list {
 if {[string match "*connecting: * (~$[censored]@*" $text]} {

foreach [censored] $list {
 set [censored] "~$[censored]"
 if {[string match "*connecting: * ($[censored]@*" $text]} {

if {([string index $[censored] 0] == "~")} { 
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
m
misterys
Voice
Posts: 23
Joined: Sun Mar 30, 2003 2:43 pm

Post by misterys »

thanks :)
|| was enough
yeha a new chapter in my war against bots :D
Locked