in reply to Question why this Regex isn't matching

if you still want a regex

my $chain = '/td><td class="stdViewCon">Moving Services for MSCD Stude +nt Success Building</td></tr></table></TD></TR>'; if($chain =~ /<td class="stdViewCon">(.*?)<\/td>/m){print $1} else {print "ups"};

but you probably should use a module instead

Update: or maybe if you feel twisted...

if($chain =~ /<\n?t\n?d\n?[ ]+c\n?l\n?a\n?s\n?s\n?=\n?"\n?s\n?t\n?d\n?V\n?i\n?e\n?w\n?C\n?on\n?"\n?>(.*?\n?.*?)<\n?\/\n?t\n?d\n?>/m){print $1}

This is a better regex, matching also

<td class="stdViewC on">Moving Services for MSCD Stude nt Success Building</td ></tr></tab le></TD></TR>';..