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. 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. 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/.* 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
Archived
This topic is now archived and is closed to further replies.