
jblond at gmail
Jan 19, 2012, 7:43 AM
Post #1 of 1
(110 views)
Permalink
|
|
Regex vocabulary mod rewrite
|
|
Hi, it would be nice to have a list of the pattern characters from mod rewrite. At http://httpd.apache.org/docs/2.2/rewrite/intro.html#regex for many noobs in regex (including me) it is not that simple to find the right regex. Maybe a bit clearer would be: Text: . Any single character [chars] One of chars [^chars] None of chars text1|text2 text1 or text2 - range if used between square brackets Quantifiers: ? 0 or 1 of the preceding text ! at start of string means "negative pattern" * 0 or N of the preceding text (N > 0) + 1 or N of the preceding text (N > 1) {} minimum to maximum quantifier Grouping: (text) Grouping of text Anchors: ^ Start of line anchor $ End of line anchor Escaping: \ char escape that particular char Thoughs? Cheers Mario --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscribe [at] httpd For additional commands, e-mail: docs-help [at] httpd
|