How do I tell a script to ignore the number on the end of a material name
I have script which looks at material names and replaces them with a material in a specific material library if the names match. So the Standard material named Roof-Gray will be replaced with my vray material Roof-Gray, for example. But sometimes because of the import process I end up with a material named Roof-Gray1 which isn't recognized as a match.
How can I tell mascript to ignore the number at the end when checking for a match?