Blog Archives

Regex Flickr Parser

Today’s Regex is used to parse a string for Flickr links and extract the Photo_ID. Once we have the Photo_ID we’re able to create a standard embed code from nearly any Flickr URL. Supported Links: The following Regex supports these

Posted in Computers, PHP, Programming, Regex Tagged with: , ,

Regex Vimeo Parser

Today’s Regex is used to parse a string for Vimeo links and extract the Video_ID. Once we have the Video_ID we’re able to create a standard embed code from Vimeo links. Supported Links: The following Regex supports these Vimeo links

Posted in Computers, PHP, Programming, Regex Tagged with: , ,

Regex YouTube Parser

Over the next several days I’m going to post a series of Regex strings. These Regex strings can be used to parse input for different links. I’m using PHP in my examples (you may need to tweak the Regex to

Posted in Computers, PHP, Programming, Regex Tagged with: , ,

PHP Date in Human Readable Format

I’m working on a PHP project that requires human readable, relative date formatting. Below is the PHP function I’m using. The function handles past and future dates. Sample Future Output : 30 seconds to go 1 minute to go 5

Posted in Computers, Programming Tagged with: ,

Expand URL

The popularity of short URL services, like tinyurl.com and bit.ly, has grown due to the character limits of Twitter. These services pose a security risk because they could be used to conceal the addresses malicious sites. Users are being taught

Posted in Computers, Hacking, Security Tagged with: ,