If the /$\s*^/g regex doesn't work (it should though), try
string.split("\n").join("") - it probably won't be fast, but it'll get you
by, and you can write something specific using indexOf etc later if speed
becomes a problem.

-Josh

On Wed, Jun 18, 2008 at 9:24 AM, Luke Vanderfluit <
[EMAIL PROTECTED]> wrote:

> Hi.
>
> shaun etherton wrote:
> > Hey Luke,
> >
> > Luke Vanderfluit wrote:
> >> Ive tried this:
> >>                  var myp:RegExp = /\n/g;
> >
> > have you tried \r
>
> Yes. Ive tried /\r\n/, /\r/, /\n/
> Also tried setting is as in new RegExp("//n","g"); etc.
>
> Kr.
> Luke.
>
> >
> > cheers,
>
>
> --
> Luke Vanderfluit
> Analyst / Web Programmer
> e3Learning.com.au
> 08 8221 6422
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"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