[Jprogramming] Sub-string Matching
R.E. Boss
r.e.boss at outlook.com
Fri Oct 26 08:05:05 UTC 2018
Try E.
R.E. Boss
-----Oorspronkelijk bericht-----
Van: Programming <programming-bounces at forums.jsoftware.com> Namens Skip Cave
Verzonden: vrijdag 26 oktober 2018 09:45
Aan: Programming at jsoftware.com
Onderwerp: [Jprogramming] Sub-string Matching
I need a sub-string matching verb 'ssm' that will return a boolean '1' if the left argument matches any portion of the right argument.
Examples:
2 3 ssm 1 3 4 2 3 5 6
1
2 3 ssm 1 3 4 2 1 5 6
0
2 40 6 ssm 52 6 34 6 2 4 2 40 6 78 55
1
2 40 6 ssm 52 6 34 6 2 4 2 39 6 78 55
0
1 1 ssm 1 0 1 0 1 0 1 0 1 1 0 1 0 0 1
1
1 1 ssm 1 0 1 0 1 0 1 0 0 1 0 1 0 0 1
0
0 1 0 1 0 ssm 1 0 1 0 1 0 1 0 0 1 0 1 0 0 1
1
What is a simple expression for ssm? explicit? implicit?
Skip Cave
Cave Consulting LLC
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list