I think if you explain what you are trying to do, it might help us to assist.
From what I can gather, if MrBot (not clear whether that is the botnick on which this script is loaded) says in #mychan something that matches *released*ago* then you attempt to strip text codes with a regsub (I can't see that working) then replace ) ( and " " with %29, %28 and + respectively to form a valid URL from the text. Then append the resultant text to
http://www.myurl.com/gotime.php?prerls=
First off, use the Eggdrop Tcl command stripcodes to strip text formatting codes as follows :-
set text [stripcodes bcruag $text]
The channel text which you want the script to respond to is typically :-
<MrBot> (BETA) Beta.v0.27 was released 20h 3m 22s ago
I deduced from this that the URL would be :-
http://www.myurl.com/gotime.php?prerls= ... 3m+22s+ago
I pasted that into a browser and got nothing useful that might tell me what you are trying to do.
Quite aside from the success or otherwise of the coding inside the PUBM proc, if you wish to test if 'things' are happening you could temporarily add output statements at appropriate points. For example, if you want to see if the bind is triggering simply add this as the first line of code inside the proc (and watch the partyline for output) :-
putlog "bind triggered"
You can use this technique to find where your code fails, if there is not otherwise any Tcl error to be seen in the partyline.
A typical http useragent (from an MS Windows machine) would be :-
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)"