MathGroup Archive 2005

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

Search the Archive

Re: string to a special list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg57841] Re: string to a special list
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 9 Jun 2005 06:34:42 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <d892sr$seu$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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