snowdeal logo

archives archives

ex machina


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...
bookmark: del.icio.us ::digg it ::furl ::reddit ::yahoo ::
10/24/2001 09:39:00 PM 0 comments

0 Comments:

Post a Comment


[ rhetoric ]

"it is hard to be brave," said piglet, sniffing slightly, "when you're only a Very Small Animal." rabbit, who had begun to write very busily, looked up and said: "it is because you are a very small animal that you will be Useful in the adventure before us."

the complete tales & poems of winnie the pooh

[ about ]

this site chronicles the continuing adventures of my son, odin, who was unexpectedly born on the fourth of july at 25 weeks gestation, weighing 1 pound 7 ounces.

he's quite a fighter and you can always send him a postcard to the most current address listed here if you're inspired by his adventures. see the postcard project/google maps mashup to see a map of the postcards.

if you're new, you can browse the archives to catch up. and don't forget to watch a few movies that i made while we were in the neonatal intensive care unit. or if you want the abridged version and you can find a copy, you can read about his adventures in the november 2005 issue of parents magazine.



[ search ]

[ outbound ]

daddytypes / blogging baby /

rebeldad / thingamababy / The Continuing Adventures of Super-Preemie / dooce /

[ schwag ]

look snazzy and support the site at the same time by buying some snowdeal schwag!

[ et cetera ]

valid xhtml 1.0?

This site designed by
Eric C. Snowdeal III .
© 2000-2005