How to parse a URL in Caché:
Let's pretend you are working on a project where you may be retrieving a URL for some purpose and you have the need to be easily able to parse apart that URL to get the various components that make up the URL.
Here's how to do that:
Note: This example assumes you have a variable named sURL that contains some url (i.e. http://www.intersys.com/main.csp?QUERY=abc#anchor) and you will be creating an array of the URL component pieces, where the array will be named aComponents.
In your class/routine, add the following code:
Do ##class(%Net.URLParser).Parse(sURL,.

