Create a calculated field with code like this,
For example if you are searching for product Goodday-ahv5e5dsd followed by some id, then \w is used to denote a character and * denotes 0 or more occurrences of any character.
If your product name have any special characters such as ], . ,* , $ then you must prefix with \ to make it as a normal character.
\w and \s denote words, space, for matching pattern.
Hope this helps you.