You don't need mootools for what you've described. All you have to do is replace "*" with ".*" in "/user/name/*" to get / user/name/.*, then use match()
See this working example: http://mootools.net/shell/AU6sA/1/ On Jan 22, 4:58 pm, Eneko Alonso <[email protected]> wrote: > I´m looking for a way of matching strings, similar to regular expresions, > but making it easy for the user. > > I want the user to be able to enter a path like > > /user/name/* > > and have that path to match with any path that starts with /user/name/ like: > /user/name/ > /user/name/pics > /user/name/comments > etc. > > So given the second url, I need to see if it matches the first one (the one > with the asterisk). > > Any suggestions? Are there any Mootools functions out there that may help? > > Thanks a lot
