MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: StringCases kills Kernel


Hi Daniel,
I tried the example in version 6. The 
following warning was displayed:
"String or list of strings expected at 
position 1 in \
StringCases[s,RegularExpression[\!\(\"(0123456789)+\"\)]]"
The Kernel wa's not killed.
Wim W. Wilhelm

"dh" <dh at metrohm.ch> wrote in message 
news:fb5nv5$8g8$1 at smc.twtelecom.net...
>
>
> Hello,
>
> I often read a file into a string and 
> use StringCases to extract
>
> relevant information. However, if the 
> extracted part is too large, the
>
> kernel is killed. This happens in 
> version 5 and 6. here is a simple
>
> example:
>
> s= StringJoin[Table["0123456789", 
> {10^5}]];
>
> StringCases[s, 
> RegularExpression["(0123456789)+"] ];
>
> the same also happens when we use a 
> StringPattern:
>
> StringCases[s3, "0123456789" ..];
>
> Daniel
>
>
> 




  • Prev by Date: How to get Table not to return Null?
  • Next by Date: Rotated Text with Full AspectRatio and ImageSize
  • Previous by thread: StringCases kills Kernel
  • Next by thread: Localizaction of variables in Fit..