That's what test2.tcl in this [L1 ] "Regular Expressions" [L2 ] column does.
[Can someone please teach the Wiki how to parse URLs with alternate port numbers? Substition of '%3a' for ':' isn't possible in that context.]
Done 21-6-2002 -jcw