Johan Åhlgren

Using regular expressions in Delphi


Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

For a while now, we have had support for regular expressions in Delphi. This came in handy when I needed a way to extract all links from a HTML page. Turns out it was not too difficult, and the following code snippet takes care of it:

Leave a Reply

Your email address will not be published. Required fields are marked *