Parenthetical back matching in regular expressions
Thursday, November 27th, 2008
Let me repeat, I still don’t like the taste of vegetables regular expressions. But despite their bitterness, my mind has grown stronger having eaten so many lately.
So anyway, I ran into this problem lately with back references within the body of regular expression matches. Trust me, I’ve scoured the penultimate of documentation websites for regular expressions, and still found no clear answer, so I thought I’d share my findings through trial and error.
Continue reading | 11 Comments
Featured Photo
Prototypes
- LOLcanvas
Submitted by Paul O'Shannessy - JUNE - the JavaScript Framework
Submitted by Costin Trifan - Track Attack
Submitted by Ray Hauge - Simple Image Popouts
Submitted by Matt Snider - Creating an After Effects Numerical Input
Submitted by Josh - Using the XML DOM Without Writing 15,0000 Lines of Code
Submitted by Stephen Sorensen - SWF Integrator
Submitted by daweed - dsHistory Browser History Manager
Submitted by Andrew Mattie - Forcing references/pointers to any variable in JavaScript - a simple hack
Submitted by Stephen Sorensen - Visual JavaScript
Submitted by Ray Hauge
Dailies
- The Nikon D3x is here
- Nikon F5 (film) versus Nikon D700 (Digital)
- Lively is being shut down by end of year
- South Park Obama Victory Episode
- Time for Palin to answer tough questions
- The New Yorker: Barack Obama is the recommended leader
- Official Gmail Blog: New in Labs: Don't send email when you're drunk
- Steve Souders releases Hammerhead
- Google's Android-powered phone launched
- JavaScript is hard, let's go shopping
- James Duncan's initial thoughts on Canons 5D mkII
- Dustin Snipes does 70 basketball portraits in two days
JavaScript Video Tutorial Screencasts
Learn the fundementals of the Yahoo! User Interface utilities
and how to add progressive enhancements to your webpages with only applying the basics.
Download QT Movie (19MB)
Learn how to add Ajax to your website using the Yahoo! UI Connection Manager with
minimal code and maximum flexibility.
Download QT Movie (31MB)
Learn how to write a client-side Web Service API in JavaScript using Object
Oriented methodologies along with a best-practices approach that will allow you to
play nice with the other JavaScript kids in your neighborhood.
Download QT Movie (19MB)
People
Podcasts
Episode 16: A fictional JavaScript tale
This episode was done solo as I tell a fictional tale about five JavaScript kids (among others) that I wrote during a night I wasn’t able to get any sleep. It features a few of the greatest JavaScripters around as the characters including the following:
- Dustin Diaz (myself)
- Dan Webb
- John Resig
- Peter Paul
- Justin Palmer
- Copy Paste Boy (Billy)
Episode 15: Venni viddi vicci of Events
Justin Palmer in many ways felt like the brother I never had even though I will claim to have other JavaScript mafia brothers as well.
Aside from that matter, the “Experience Engineer” from Encytemedia (and Prototype enthusiast) and I spoke about the various forms of Events that all encompass JavaScript. And indeed; we came, we saw, and we conquered.
About ./with Imagination
Hi, my name is Dustin Diaz and I am a User Interface Engineer for Gooooogle and author of JavaScript Design Patterns. This is my website. Welcome!
On this site I write about JavaScript; I have some podcasts; I also have a few screencasts for those of you who are visual learners. All that aside, if you learn something from me: Excellent. I appreciate you dropping by.
If you have any more interest in learning more about what I do, how long I've been doing it, or how to get a hold of me, you can do that on the about page. Cheers.







