in reply to Getting an IP out of a string

First off, that's not legal HTML. Are you really parsing something that is that broken?

Second, if it's general HTML to parse, use a general HTML parser {grin}. See HTML::Parser.

-- Randal L. Schwartz, Perl hacker