Text processing: udPattern
Thomas Björk (contact me)
udPattern allows you to store patterns and to check strings against them. It should be perfect for matching URLs and filenames.
Just register the patterns you want to use and then call the TestPattern function to check if it is a valid string. You can use accept(+) or reject(-) to all patterns as well as wildcards.
If you are experienced with regular expressions you might do it faster but probably not as easy.
Click here for detailed information about this class on phpclasses.org