I have a long list of arbitrary strings and I'd like to determine if my given string "ABADCAFE" starts with any of the strings in my list. Is there a library class somewhere that can do this for me reasonably efficiently ?
(I suppose it's much like the state machine built by regex, but I don't think composing a regex is the way to go here - my list is too long)