Function to search a variable

Does anyone know any function or command that will search a variable for specific characters? I found a replace function but not a search…

I have a string 10#12#13#14#15 etc…

and I want to search it to see if #14 exists.

There is a regular expression operator. See the documentation on channel variables.