[UPHPU] regex help

Orson Jones orson.uphpu at afriskito.net
Thu Mar 27 10:17:11 MDT 2008


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


More information about the UPHPU mailing list