Lexing Your Data (15 tags)
Perl is famous for its text-processing capabilities. However, sometimes the data you want to process is too complicated for regular expressions and you reach for a parser for HTML, RTF, or other common format. What happens you don't have a pre-defined parser, but the text you need to work with is too complicated for regular expressions? Curtis Poe shows how to do proper lexing with Perl.