opps trace result not c_result
On 3/2/06, Ryan Matsikas <[EMAIL PROTECTED]> wrote:
>
> the "proper" way todo it would be
>
> var re = new RegExp("\"[^\"]+\"","gi");
> var result = re.exec(line);
> while (result != null) {
> fl.trace("found: "+c_result);
> var result = re.exec(line);
> }
>
>
> On 3/2/06, Christian Giordano <[EMAIL PROTECTED]> wrote:
> >
> > > var re = new RegExp("\"[^\"]+\"","gi");
> > > var m_arr = re.exec(line);
> > > var m = m_arr["0"];
> > > var c_string = m.substr(1,m.length-2);
> > > fl.trace("found: "+c_string);
> >
> > I solved in this way:
> >
> > var re = new RegExp("\"[^\"]+\"","gi");
> > var m_arr = re.exec(line);
> > if(m_arr){
> > var m = String(m_arr);
> > var c_string = m.substr (1,m.length-2);
> > fl.trace("found: "+c_string);
> > }
> >
> > any cleaner?
> >
> >
> > cheers, chr
> > --
> > ___________________________________________________________________
> > { Christian Giordano's site and blog @ http://cgws.nuthinking.com }
> > _______________________________________________
> > [email protected]
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
>
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com