hence I wrote that"here, if [regexp] doesn't find a match, served won't be set, hence the "No such variable" error on the next line; in TCL, unlike C, every variable must be initialized (with [set] or implicitly by some other commands) before being used "
set served ""
done that too..."that [regexp], judging by its arguments, needs to be changed to [regsub] "
using regsub won't work since I see this
Code: Select all
Soulseek server <html><head><title>slsk serverstatus</title><style>body { font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 8pt; color : gray; font-weight: bold; scrollbar-face-color: #ffffff; scrollbar-highlight-color: #efefef; scrollbar-3dlight-color: #ffffff; scrollbar-darkshadow-color: #ffffff; scrollbar-shadow-color: #afafaf; scrollbar-arrow-color: #afafaf; scrollbar-track-color: #ffffff; overflow: auto;}A, A:ACTIVE, A:FOCUS, A:HOVER, A:LINK, A:VIS
using each one in particular or both together, simply does not work...
shows the line without any info regarding what "served" should bring.
hence, help was given, but it does not work.