02-24-2013, 04:49 PM
OK, cleaned some codes from advices given in last questions.
Now arise a new question:
I have _s containing some paths
_s=
c:\program files\myexe51.exe
c:\program files\myexe2.exe
c:\program files\myexe3.exe
c:\program files\myexe4.exe
c:\program files\myexe5.exe
and i have an array or another string variable of words
ARRAY(str) a1 or str s1="myexe1 mystuff anotherone somethingelse"
All tricks (IStringmaps, SelStr, StrCompare) will work on words alone, not with a find function.
I'd like to make another string/array with words in s1 or a1 matched in _s, and one with unmatched.
I tried many ways, found one with an intermediate array which works, but sure there must be simpler way.
What I did
foreach str'r _s
foreach str'rr s1
if(find(rr r)>-1) doaction
but i can't get the place to put unmatched words.
Thanks for help.
Now arise a new question:
I have _s containing some paths
_s=
c:\program files\myexe51.exe
c:\program files\myexe2.exe
c:\program files\myexe3.exe
c:\program files\myexe4.exe
c:\program files\myexe5.exe
and i have an array or another string variable of words
ARRAY(str) a1 or str s1="myexe1 mystuff anotherone somethingelse"
All tricks (IStringmaps, SelStr, StrCompare) will work on words alone, not with a find function.
I'd like to make another string/array with words in s1 or a1 matched in _s, and one with unmatched.
I tried many ways, found one with an intermediate array which works, but sure there must be simpler way.
What I did
foreach str'r _s
foreach str'rr s1
if(find(rr r)>-1) doaction
but i can't get the place to put unmatched words.
Thanks for help.
