Today on the #codeigniter IRC channel someone asked about how to match a string that didn’t start with a specific word using a regex. I quickly threw out that, off the top of my head, /^(abc){0}/ should work. Well, surprisingly, it didn’t. Turns out negatively matching words with regular expressions is a little more difficult. [...]
Category Archives: Programming
SparkStats Widget Patch
February 16, 2008 – 3:35 pm
Luc Betheder wrote a handy little widget for Sean McBride’s SparkStats plugin, which I recently started to use. I noticed, though, that whenever I made changes to my widgets the custom title I set for the Sparks plugin would get wiped out. So I fixed the problem in the plugin and thought I’d send the [...]
Javascript For-in Loops
November 15, 2007 – 4:47 pm
Note to self: do not use for-in loops to iterate over an array. Javascript frameworks will add methods and properties to the array object which will then be looped through and summarily break code.
All Rights Reserved. Icons are from