This is an excerpt from Manning's book Extending jQuery. Login to get full access to this book.
Listing 14.3. Adding a pattern-matching rule