If you need to strip all non-numeric characters from a string (except for the period character) using JavaScript, try:
string.replace(/[^\d.]/g, "");
On comparing two Date() objects in XCode
XCode + Git
In which I explain how to parse the first image from a post
In which I explain how I roll my code
Great tools make great code.
davidgagne.net is the personal weblog of me, David Vincent Gagne. I've been publishing here since 1999, which makes this one of the oldest continuously-updated websites on the Internet.
A few years ago I was trying to determine what cocktails I could make with the alcohol I had at home. I searched the App Store but couldn't find an app that would let me do that, so I built one.
You can read dozens of essays and articles and find hundreds of links to other sites with stories and information about Ernest Hemingway in The Hemingway Collection.