开发者

Adding apostrophe/single quote to my RegEx match

开发者 https://www.devze.com 2023-01-08 16:11 出处:网络
I\'m usi开发者_StackOverflow社区ng [A-Za-z0-9_-] to match letters, numbers and _ and - in my regular expression.

I'm usi开发者_StackOverflow社区ng [A-Za-z0-9_-] to match letters, numbers and _ and - in my regular expression. I'd like to add the ' character to it but most of my attempts result in server error 500.

Here's the full line from my htaccess:

RewriteRule ^[A-Za-z0-9_-]+/?$ /index.php


Have you tried escaping it with \?

0

精彩评论

暂无评论...
验证码 换一张
取 消