php - how to use # in reqular expression in pup htaccess file -


i need use # in regular expression make commented characters after ( #)

rewriterule ^([a-za-z0-9_-]+)?/?([a-za-z0-9@#$&%_"'\{\}:\,\-]+) 

can 1 me how can use # not comments...i used # doesn't work help.

it looks might over-escaping inside second character class.

check out accepted answer question:

htaccess regexp underline , space doesn't work

not knowing goal of rewriterule makes difficult offer further help. recommend looking rewriterule flags see if there useful can leverage there, such noescape flag [ne]:

http://httpd.apache.org/docs/current/rewrite/flags.html


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -