开发者

Adding apostrophe/single quote to my RegEx match

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜