it is non greedy it starts at the first space and goes all the way to the first % which is what
\s.*?%

means

try

//echo -a $regex(aa aa%aa aa%asd sd,/(\S+?%\S+)/g) $regml(1) $regml(2)

EDIT: Seems i opened the reply window longer ago then i thought :P

Last edited by Mpdreamz; 04/01/07 05:29 PM.