Code: Select all
foreach line [split $buffer \n] {
if {[string match "*VfL Wolfsburg*" $line]} {
regexp {\"([^<]*)\" BORDER} $line garb name
Sorry for my bad english, i'am german

greets
Code: Select all
foreach line [split $buffer \n] {
if {[string match "*VfL Wolfsburg*" $line]} {
regexp {\"([^<]*)\" BORDER} $line garb name
Code: Select all
set data [split [read $fp] "\n"]
if {[set a [lsearch -glob $data "*VfL Wolfsburg*"]] != -1} { puts "[lindex $data [expr $a + 1]]" }
close $fp
Code: Select all
<td nowrap valign="top"><a href="/vereine/vflwolfsburg/2005/" title="Portrait und Saisonverlauf von VfL Wolfsburg">VfL Wolfsburg</a></td>
<td align="right" valign="top">7 </td>
<td align="right" valign="top">6</td>
<td align="right" valign="top">0</td>
<td align="right" valign="top">1</td>
<td align="center" valign="top"> 13:6 </td>
<td align="right" valign="top">+7</td>
<td align="right" valign="top">18</td>
</tr>
Code: Select all
set rf [open file]; or you could get it directly from ur socket..
while {![eof $rf]} {
gets $rf x
if {![string match -nocase "urstring" $x]} {
continue
}
gets $rf x
puts $x
}
close $rf