^([-_a-z]+)\.([^/]+)$ %1/$1/$1.$2
2008-07-05 08:16 amYes, as a matter of fact, Apache rewrite rules do look like a combination of line noise and swearing. This is a problem why?
Yes, as a matter of fact, Apache rewrite rules do look like a combination of line noise and swearing. This is a problem why?
no subject
Date: 2008-07-05 04:01 pm (UTC)no subject
Date: 2008-07-05 06:21 pm (UTC)Most of my comic-strip profanity came yesterday while I was writing the darned thing. Tricky.
no subject
Date: 2008-07-05 06:52 pm (UTC)On the other hand, the widespread adoption of Perl-style regex syntax at least brings some consistency to the problem.
no subject
Date: 2008-07-05 08:38 pm (UTC)no subject
Date: 2008-07-05 10:28 pm (UTC)That said, the existence of (many) interactive regex builders implies that something about regexes is difficult to do correctly. The question is: is it the thing itself which is difficult, or is the regex language providing (superficial, fixable) friction?
no subject
Date: 2008-07-06 03:14 am (UTC)The design of regular expressions (or at least the process they went through) is really quite elegant. However, elegance sucks when it's impossible to understand.
Of course, one could look at the source of the necessity to describe one language with another as being broken... but it's The Way Things Are. regexps are not the only attempt to define such a language, by the way.