|'s Blog|| | |
I Am a Nerd, I Don't Care
|I Am a Nerd, I Don't Care|
10/17/08 at 10:38 AM by Jason Tate
|Regular Expressions are still one aspect of coding that I just have a hard time with. The more I read, the less I understand. Hahah. Anyway, after a week of trying to make sure I could get the damn thing to work right - I wrote a way to strip URLS from blog posts so that they would show up on the new member profiles correctly.|
$preview = eregi_replace("(http|https|ftp)://([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)", " ", $preview);
Yes, it took me so long to read and try and learn and massive amounts of trial and error - that I feel the need to brag about how big of a nerd I am.
I'm starving. I need food. And to take the dog out to pee. I have some radio interview thing in an hour I should probably prepare for too.