Wade Preston Shearer wrote: >> Also, you might want to do ([^/]*) instead of (.*) >> >> ^([^/]*)/([^/]*) > > Now we are getting somewhere. That works. The only problem now is that > it is only returning "b" instead of "b/whatever/else/is/out/here/" as > the value of $2. Ah, missed what you were going for. ^([^/]*)/(.*)$ Orson