Luis Henrique Machado Jr. wrote:
> Please anybody can explain me how the works ^ and the $?
I assume we are talking about the url_regex acl type here?
? and $ is special regex characters.
^ matches the beginning
$ matches the end
Examples illustrating their use in url_regex:
^http://
\.gif$
Similarily for the domain_regex:
^www\.*\.com$ matches www.<anything>.com
^www\. matches www.<anything>
Without these magic characters the above matches would match if the sequence
if characters is found anywhere in the URL (or domain). Example
url_regex \.gif
will in addition to .gif files also match
http://www.giffel.com/
http://www.example.com/abc.giffy/contact.html
Regards
Henrik
Received on Tue Jun 04 2002 - 09:29:52 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:08:26 MST