The weblink of Score:
Scores
The regsub I am using:
Code: Select all
regsub -all "\n" $body "" body
regsub -all -nocase {<br>} $body "<br>\n" body
regsub -all {<b>} $body "\n\002" body
regsub -all {</b>} $body "\002" body
regsub -all {World Cup Warm-up Matches} $body "\00304,01World Cup Warm-up Matches\003" body
regsub -line {<p class="blueBackHeading">} $body "\n\00304,01" body
regsub -line {</p>} $body "\003\n" body
regsub -all {<.+?>} $body "" body
regsub -all { } $body "" body
regsub -all {This page automatically refreshes every 60 seconds.} $body "" body
regsub -all {Scorecard} $body "" body
regsub -all {Desktop scorecard} $body "" body
regsub -all {Bulletin} $body "" body
regsub -all {| |} $body "" body
Code: Select all
[06:33] <Cricket`->
[06:33] <Cricket`-> Current time:01:33 GMT, Wed Mar 14, 2007
[06:33] <Cricket`-> 04,01One-Day Internationals
[06:34] <Cricket`-> 1st Match, Group D: West Indies v Pakistan at Kingston - Mar 13, 2007
[06:34] <Cricket`-> West Indies won by 54 runs
[06:34] <Cricket`-> West Indies 241/9 (50 ov); Pakistan 187 (47.2 ov) | | | | Standard Bank Pro20 Series
[06:34] <Cricket`-> Titans v Dolphins at Benoni - Mar 14, 2007
[06:34] <Cricket`-> Match scheduled to begin at 18:00 local time (16:00 GMT)
[06:34] <Cricket`-> Warriors v Lions at East London - Mar 14, 2007
[06:34] <Cricket`->
Need help:
1. I want to get rid of pipes " | "
2. You see that " Standard Bank Pro20 Series " is the heading it should come on a different line but it's not coming.
3. At the start and the end there is a blank space
4. The last line from the web the bot did'nt show.
Can you kindly help me out, I've tried to read regsub help alot but can't get outta it. Your help will be appreciated.
Thanks.