Another (related, and also using -. (twice!)) expression that I use a lot for getting just the digits from a string -

   digits=: -.&(a.-.'0123456789')

   digits ": 23 45 6
23456


On 2013/09/08 19:54 , Alex Giannakopoulos wrote:
That 'less' verb is very useful, I'd never had occasion to use it until now!
It could have been a bit more hyped up in the documentation, though, I'd
never even seen it used before! (blush)



On 9 September 2013 03:46, Alex Giannakopoulos<[email protected]>wrote:

>Ah, OK, now I got it!
>
>(": 23 45 6) -. ' '
>
>23456
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to