You can achieve this by looping over CT (use function like Count) and using regular expressions. You must use a JavaScript Rule for this. There is a performance implication when using this kind of search because it will loop though the CT contents using an Index.
thanks
Chandra