Posts Tagged ‘Regular’

URLParser: a parser to get value of host, protocol, port, parameters from an URL using regular expression

Filetype-URL Problem Summary´╝Ü Once I need to get the host, protocol, port, parameters from a given URL with Action-Script. I googled for a class named HTTPUtil developed by members of, and got some tips about URLUtil of Flex SDK. However, HTTPUtil is used to resolve information from the URL of the page the SWF file embed in. URLUtil is useful, but a little complex. I need a simple method to resolve a given URL, and use the resolved information directly without extra processing.

Solution Summary: I decide to write a class named URLParser myself to satisfy my requirement using regular expression of action-script.

Search-256x256 Demo | DownloadDownload Full Project


How to Highlight the Text in Flex(with Full Source Code)

Text-Edit Maybe you have read RegExr: Online Regular Expression sample( , the high-light effect of matched characters is perfect and with the mouse moving will show the detail information of the alphabetic string as the following image show.