| View previous topic :: View next topic |
| Author |
Message |
NewzNZ Halfop

Joined: 05 Mar 2009 Posts: 60
|
Posted: Wed Jun 13, 2012 9:29 pm Post subject: combining string matches |
|
|
Hi all
Just wondering if there's a way to combine these string matches into a shorter operation?
| Code: | | if {[string match *href* $n] || [string match *http* $n] || [string match *@* $n]} { |
Thanks in advance for any help! |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Thu Jun 14, 2012 2:59 am Post subject: |
|
|
Regexp?
| Code: |
if {[regexp {href|http|@} $n]} {
|
_________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
|