which function can be used to match exact name ins...
# cfml-general
g
which function can be used to match exact name instead of find or findnocase or findoneof?
z
Exact name? You mean in a list?
g
i am looping a list so i am using currently findnocase, which is basicallay returning me even it find
min
in the name, so what i am trying to do is, if my list has jquery.popper.min.js, it should match full name exact instead of just finding one piece of it
found it
d
If you use the
listFindNoCase
, there is no need to loop over the list yourself and it does what you are asking by only matching full matches (assuming I understand what you’re saying). A trycf.com example showing what you’re seeing would be good though. https://cfdocs.org/listfindnocase
👍 1