[ncl-talk] Possible bug or improvement for the function "str_index_of_substr"
Yuqiang Zhang
yuqiangzhang.thu at gmail.com
Fri Dec 9 14:31:17 MST 2016
Hi Dear NCL developers,
I was using the "str_index_of_substr" to find the sub array recently, and
found some interesting thing about it.
For example,
a = "ABABA"
substr = "ABA"
i1 = str_index_of_substr(a, substr, 0)
print(i1)
The output is 0, which is "*ABA*BA" only, but actually I kind hope it could
find both "*ABA*BA" and "AB*ABA*". Any way to bypass that?
Thanks!
Regards,
Yuqiang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161209/c9fe16c9/attachment.html
More information about the ncl-talk
mailing list