matchstring
daviesre
So… this seems odd...
•string s1="How did it go"
•print stringmatch(s1, "How")
0
•print stringmatch(s1, "How")
0
Shouldn't the output be 1?
So… this seems odd...
Shouldn't the output be 1?
No, since "How" is not the same as "How did it go". Use:
•print stringmatch(s1, "How*")
1
November 21, 2020 at 03:58 pm - Permalink
In reply to No, since "How" is not the… by chozo
Doh!
November 22, 2020 at 01:28 pm - Permalink
Hi,
Not complete Doh! cmpstr(str1,str2) returns 0 when strings are equal.
Andy
November 22, 2020 at 02:31 pm - Permalink