Searching a string in custom connectors

My first post so be gentle!  I couldn't find this anywhere so please forgive if my search wasn't inclusive enough.  Is there a function in custom connecters to search a string for a speficic substring, something like preg_match in PHP?

 

Thanks!

Curtis