Hey Everyone, I got a painful change that I think needs to be made to the patterns or they're going to suck hard later. Right now the Lua pattern code uses % for special escape sequences. Problem is, URLs use % for lots of things too. So if you want to match % codes in URLs you'd have to double up on them all the time. I'm proposing to change the % to a \ like in other regex engines. So, instead of %a for alpha chars, it'd by \a. Or instead of %b() to balance parens it'd be \b(). Any objections? -- Zed A. Shaw http://zedshaw.com/
On Mon, Jul 26, 2010 at 12:01:05PM -0700, Zed A. Shaw wrote: > Hey Everyone, > I'm proposing to change the % to a \ like in other regex engines. So, > instead of %a for alpha chars, it'd by \a. Or instead of %b() to balance > parens it'd be \b(). Too late, I went and did it already and updated the docs. It really is better for the routing if we \ instead of %. -- Zed A. Shaw http://zedshaw.com/