sKunKbad Posted June 6, 2009 Share Posted June 6, 2009 I'm using RegexBuddy, and trying to create a match. I have this regular expression: ^/(~brians6)/(.*) and it matches /~brians6/ but not /~brians6/about.php and I'm wondering why, and how to fix it. Quote Link to comment https://forums.phpfreaks.com/topic/161191-why-wont-my-regex-match/ Share on other sites More sharing options...
.josh Posted June 6, 2009 Share Posted June 6, 2009 you have them as two separate captures. Quote Link to comment https://forums.phpfreaks.com/topic/161191-why-wont-my-regex-match/#findComment-850572 Share on other sites More sharing options...
sKunKbad Posted June 6, 2009 Author Share Posted June 6, 2009 I think I need two backreferences, because I am trying to make this work in mod_rewrite: RewriteRule ^/(~brians6)/(.*) $1/index.php/$2 so that I can make my shares sll work with CodeIgniter. Actually, I'm not even sure this is my answer. Trying to get CodeIgniter working with my shared ssl has been unsuccessful no matter what I do. Even this doesn't work: ^/~brians6/.* Quote Link to comment https://forums.phpfreaks.com/topic/161191-why-wont-my-regex-match/#findComment-850576 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.