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]:
Comments
Post a Comment