I wasn't really right, but if i have

red fish blue fish green fish yellow cat

/.*fish/ will match

red fish blue fish green fish

when what I want is to match "red " or "red fish" if I can group around
everything but "fish".

-J

On Tue, Jun 3, 2008 at 5:09 PM, shaun <[EMAIL PROTECTED]> wrote:

>
> > Oh yeh, your right..
> >
> > This should work though i think.
> >
> > var r:RegExp = new RegExp(text, rexFlags);
> > var result:Array;
> > result = r.exec(s);
> > result[0] = entire line.
> > result[1] = first group.
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to