Gamingforce Interactive Forums
85239 35211

Go Back   Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk
Register FAQ GFWiki Community Donate Arcade ChocoJournal Calendar

Notices

Welcome to the Exploding Garrmondo Weiner Interactive Swiss Army Penis.
GFF is a community of gaming and music enthusiasts. We have a team of dedicated moderators, constant member-organized activities, and plenty of custom features, including our unique journal system. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Membership is completely free (and gets rid of the pesky advertisement unit underneath this message).


.htaccess aids
Reply
 
Thread Tools
Fleshy Fun-Bridge
Hi there!


Member 907

Level 22.05

Mar 2006


Reply With Quote
Old May 29, 2007, 09:08 PM #1 of 5
I think your real problem is that the regex pattern .* is greedy, in that it will try to match the longest string of text possible. Given the text:

/play/Classical/Chopin_-_Fantasie_Impromptu/

/play/(.*)/? will always include the trailing slash in the match because it still satisfies the pattern and is longer than a match without the slash. The solution is to use a non-greedy qualifier such as /play/(.*?)/? instead. That will try to match as little text as possible while satisfying the pattern.

Jam it back in, in the dark.
---
Reply


Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk > .htaccess aids

Forum Jump


All times are GMT -5. The time now is 08:46 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2025, vBulletin Solutions, Inc.