Jaxel
Well-known member
In one of my mods,I have the ability to add items to a playlist. One ofthe ways to add an item is to submit it's url. The way I've been doing this is with a regular expression match.
So if the url contains...
media/letters.int/video
It will get matched. However, with the new route changer, someone can easily change "media" to something else. If they do, then the regular expression stops working. How would I get around this with the new route changer?
Is there a better way to do url matching and parsing?
So if the url contains...
media/letters.int/video
It will get matched. However, with the new route changer, someone can easily change "media" to something else. If they do, then the regular expression stops working. How would I get around this with the new route changer?
Is there a better way to do url matching and parsing?