Greg, the R&S HUI 'delete' is perfect for my needs. And now I have to understand it completely...
Thanks
JCC

----- Original Message ----- From: "greg heil" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Sunday, July 09, 2006 9:21 PM
Subject: Re: [Jprogramming] String manipulation


JC Coez <[EMAIL PROTECTED]> wrote:
I want to eliminate from a string all substrings delimited by starting and (different) ending delimiters. Any help is appreciated.

Depending on what your exact needs are you may need more than

On 7/9/06, R&S HUI <[EMAIL PROTECTED]> wrote:
delete=: 4 : 0
's e'=. y
b=. s E. x
k=. b i. 1
bx=. b <;.1 x
c=. e&(+./@E.)&> bx
(k{.x) , ; bx (I.c)}~ ((#e)&+@(e&(E.i.1:)) }. ])&.> c#bx
)


Eg
  'asd(fg(hj)kl)' delete '(';')'
asd(fgkl)

~greg
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
---------------------------------------------------------------------------------------
Orange vous informe que cet e-mail a ete controle par l'anti-virus mail. Aucun virus connu a ce jour par nos services n'a ete detecte.




----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to