Could you come up with a verb enc, which encloses each substring that starts and ends with x in y without using RE? The substrings are discovered from the left.
Example:
'foo' enc 'x xfoo x x xxfoo gogo foofoo barfoo'
'x x{foo x x xxfoo} gogo {foofoo} barfoo'
Happy new year!
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
