#! code Logo

Some Common Timestamp Intervals

2nd May 2008 - 1 minute read time

Using timestamps is quite a common practice, but converting them into "real life" times can be a little hard. So here are some common time intervals that you might need.

Common Regular Expressions

24th March 2008 - 1 minute read time

Here are some of the regular expressions that I frequently use.

Find a blank line



[ \t]+

You can use this to break a text string apart into words.



This will match anything in the format mm/dd/yyyy, or even dd/mm/yyyy.

[A-Z][a-z][a-z] [0-9][0-9]*, [0-9]{4}

Will match a formatted date, such as Mar 24, 2007.



This will match HH:MM or HH:MM:SS or HH:MM:SS.mmm.

IP Address