[Jprogramming] Finding & expanding files
Skip Cave
skip at caveconsulting.com
Sat Nov 5 15:39:31 HKT 2011
Very nice! Thanks, Ric. That solves the problem in a very J-ish way.
Skip
On Sat, Nov 5, 2011 at 12:21 AM, Ric Sherlock <tikkanz at gmail.com> wrote:
> In that case the following is one approach
>
> textfile=: 0 : 0
> some stuff
> some more stuff
> stuff start string good stuff that I want to keep end string other stuff
> more stuff
> lots of stuff, more stuff, start string more good stuff that I need end
> string
> string stuff
> bad stuff stuff I don't care about start string even more stuff I want end
> end string strange stuff
> the end
> )
>
>
> getTagContents=: dyad define
> 'starttag endtag'=. x
> (endtag&taketo)&.>@(starttag&E. <@((#starttag)&}.);.1 ]) y
> )
>
> > ('start string';'end string') getTagContents textfile
> good stuff that I want to keep
> more good stuff that I need
> even more stuff I want end
>
>
>
>
More information about the Programming
mailing list