open 'validate'
load 'validate'

On Fri, Nov 25, 2011 at 10:12 AM, PackRat <[email protected]> wrote:
> I could have sworn that there were various "is..." verbs or phrases
> that identified digits, alpha chars, punctuation, etc., in literals,
> but I can't seem to locate them at all.  (I still use J602; waiting for
> the J701 bleeding edge blood to stop.)
>
> Basically, what I'm immediately looking for is a verb or phrase (I'll
> call it "isdigit") that gives a boolean 1 for each char in a literal
> that's a digit and 0 otherwise:
>
>   isdigit 'DSC0001.JPG'  --->   00011110000
>
>    D S C 0 0 0 1 . J P G
>    0 0 0 1 1 1 1 0 0 0 0
>
> I tried comparisons with values in  a.  but, for whatever reason, that
> didn't work because it seemed to compare the whole literal at once
> rather than a char-by-char comparison.
>
> Thanks in advance for your assistance with this!
>
>
> Harvey
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to