pattern and infinite loop

no spam <[email protected]> Sun, 18 Jan 2009 23:09:47 -0500
Newsgroups gmane.comp.jakarta.oro.user
Message-ID <[email protected]>
--0015174c0e8cefa6ad0460ce17b3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

I'm using this pattern:
p5c.compile(".*?<td\\s+.+<span\\s+class=\"nametext\">"+
".+?<strong>(.+?)</strong></font>.+?Profile\\s+Views",
Perl5Compiler.SINGLELINE_MASK);

to try and pull genres out of myspace pages.  However some pages like this
result in infinite loops:

http://www.myspace.com/pain

How can I prevent these loops?

--0015174c0e8cefa6ad0460ce17b3--