Categories

Updated: 10/27/2003

Using Regular Expressions to get HTML tags

This article will show the SIMPLE use of regular expressions (Perl style/PCRE) to get the values of data delimited by HTML tags. Instead of building a parser that pushes start tags onto a stack and pulls them off once a stop tag is found (if one is found) I find it much easier to use regular expressions. This article is NOT a primer to regular expressions and only shows this particular example.
©2003-2019 jCay.com