so, hypothetically speaking, just say i needed to strip html from content and wanted to replace the stripped tags with a space. why, oh why doesn’t this regex work:

$content =~ s/<[^<>]*>/ /g;

it finds and removes the tags, but it doesn’t insert the space. i need the space. it’s probably one of those dopey, smack-your-forehead errors…

Leave a Reply