Can you use a regular expression to search for a Text (SearchCriteria.ByText)

I need to find an object on the screen that has no AutomationID, and the only uniqueness is the text, but the text also contains the build number which obviously will change a lot. So I wanted to use a regular expression but I can't seem to.
Is there anyway to get this to work?