Menu
[font=technical][size=3]in a regular expression how do you state that you do not want a set of characters to appear?
<i>
</i> # Will find "Find this "
# but not "Find this not this"
preg_match("#Find this [^not this]#i", $haystack, $matches);
[code=php]
RewriteRule ^archives/(.*)/?[^.php]$ /archives/$1.php
[/code]
[/size][/font]<i>
</i>RewriteRule ^archives/(.*)/?$ /archives/$1.php [L]
<i>
</i> # This is what I'm using...
RewriteRule ^archives/(.*)/?$ /archives/$1.php [L]
<i>
</i>RewriteRule ^archives/(.*)/?$ /archives/$1.php [L]
<i>
</i>RewriteRule ^archives/(.*)/?$ /archives/$1.php [L]
[code=php]
RewriteRule ^archives/(.*)/$ /archives/$1.php [L]
[/code]
[/size][/font][code=php]
RewriteRule ^(.+[^/])$ /$1/ [R]
[/code]
[/size][/font][code=php]
RewriteRule ^(.+[^/|\.php])$ /$1/ [R]
[/code]
[/size][/font]0.1.9 — BETA 5.19