MathGroup Archive 2005

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

Search the Archive

Re: string to a special list


Hi,

ToExpression /@ (Characters[
"ab(c|d|e)fg(h|i)zx"] //. {a__, "(", b__, ")", 
c___} :> {a, {b},
c} //. {a___, b_, "|", c_, d___} :> {a, 
StringJoin[b, "|", c], d})

???

Regards

  Jens

"rose" <rotree2003 at yahoo.com> schrieb im 
Newsbeitrag news:d892sr$seu$1 at smc.vnet.net...
>
> hi
> please how could i transform the string:
> "ab(c|d|e)fg(h|i)zx"
> into the list:
> {a,b,c|d|e,f,g,h|i,z,x}
> thanks
> rose
>
> 


  • Prev by Date: Re: Output from Export[ ] (suggestion to Wolfram)
  • Next by Date: Re: Mathematica equivalent complexplot
  • Previous by thread: Re: string to a special list
  • Next by thread: Re: string to a special list