std-strmember, std-strimember | ![]() |
(std-strmember <match> <strlst>) ;case sensitive wcmatch member
(std-strimember <match> <strlst>) ;case insensitive
STD-STRMEMBER
works like member, with the extension that WCMATCH
is used instead of =
for the comparison. match is any valid regular expression suitable for WCMATCH
.
It returns the list including the first found element or nil if no element in strlst matches.
STD-STRIMEMBER
uses a case insensitive regular expression search - STD-WCIMATCH
.
Note
STD-STRIMEMBER
is dependent on the current stdlib codepage, which defaults to "iso8859-1". This will only affect characters above (CHR 127)
.
(std-strmember "Test*" '("0" "Testname" "Testlayer")) => ("Testname" "Testlayer")
match: any valid regular expression suitable for WCMATCH
.
strlst: a list of strings
A list of strings or nil..
None.
(std-require 'STDSTR)
Defined in STDSTR