Forum Moderators: phranque

Message Too Old, No Replies

mod_rewrite $%*!

         

merrioc

11:03 pm on Feb 27, 2004 (gmt 0)

10+ Year Member



No I wasn't swearing in my topic. I have simple question. I have read through the mod_rewrite guide on apache.org and the rewrite guide and have learned some wonderfult things.

but what I don't totally understand is what and when do the specail characters mean IE:
! $ * .? ^

I see them often but I can't find anything to explain to me when I should use \.* vs (.*)
or what the $ means at the end of a condition.

jdMorgan

12:12 am on Feb 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



merrioc,

Those characters control the pattern-matching functions of mod_rewrite, implemented with the Posix regular-expressions standard used in PERL and PHP and many other programming/scripting languages as well.

This reference should help: [etext.lib.virginia.edu...]

Also see the very brief guide in the mod_rewrite documentation [httpd.apache.org].

Jim