This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I am trying to clean up the file name before data comparison. The file names samples are as below
What I am trying to do is to remove all the numbers and special characters and month except if the month and number does not have anything between it as in MAR007. I tried to do this by RegEx Replace().But I am not able to get the expected output for the last item.
And i also want to remove underscore only if there is more than one (FileName__01) or if it the last character in File Name (FileName__)Is there a way to do this using regex replace. ?
I was doing this step by step.So when the numerical are removed i will end up with multiple _.So i was looking for a way to remove _ only if there are more than one.Since i wanted to retain the ones between the FileName.(EgFileName_Mar i want to keep it but FileName__ i want to remove)
But i guess the one you provided is doing all this in a single formula,