So we have http://127.0.0.1:4773/robot10382.flv?action=read
we need to get out from it protocol
, ip/adress
, port, actual url
(robot10382.flv here) and actions
(action=read here) how to parse all that into string vars in one reg exp?
I'm surprised that AS3 does not include proper URL parsing facilities. To put it simply, it is not easy to safely parse a URL using an RE. Here's an example of doing it though.