Anonymous user
Boston Python Workshop/Saturday/Web app project: Difference between revisions
Boston Python Workshop/Saturday/Web app project (view source)
Revision as of 12:27, 5 March 2011
, 13 years ago→Design your URLs
imported>Paulproteus |
imported>Paulproteus |
||
Line 407:
You might ask, "What's a regular expression?" Regular expressions are patterns for matching text. In this case, we're matching the URLs people go to, and using regular expressions to categorize them into different kinds of
(If (like me) you think regular expressions are intriguing and thrilling, you can read the [http://diveintopython.org/regular_expressions/index.html Dive into Python guide to regular expressions] sometime. Or you can look at this [http://xkcd.com/208/ comic].)
In addition to ''matching'' text, regular expressions can ''capture'' text: regexps use parentheses to wrap the parts they're capturing.
|