Subj : string.split();
To : MCMLXXIX
From : Digital Man
Date : Tue Sep 28 2010 03:16 pm
Re: string.split();
By: MCMLXXIX to Digital Man on Mon Sep 27 2010 12:21 pm
> I've been working on something that splits a string at certain match
> points, and noticed that it crashes JSEXEC in windows, but not in linux...
>
> try this:
>
> "this is a test".split(/(is|a|test)/ig);
It is interesting that it's crashing. Did you confirm that you're testing with
the same version of SpiderMonkey (jslib) on Windows and Linux? When I get a
chance, I'll see if I can pass on a trace to the SpiderMonkey guys. They may
have already fixed this one.
Anyway, String.split() doesn't take a regexp as an argument, so what you're
trying to do won't work anyway. See
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String for
details.
digital man
Snapple "Real Fact" #184:
The most used letters in the English language are E, T, A, O, I and N.
---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net