I'm trying to remove something from a product title as part of a Google sheet
- Example Johner Gladstone Pinot Noir 2015, 75CL
- Stella Artois Premium Lager Bottle, 1 X 660 Ml
- Pepesza Ppsh-40 Vodka Tommy Gun, 1 L
And I want to be able to remove everything from the , and either the CL, ML or L.
The problem I'm running into is that I don't know enough about regex and I'm struggling to find a good place to learn!
What I've tried so far is below
=REGEXREPLACE(A2,"[, ]\QML|CL\E","")but this doesn't work and I think its because
[, ]isn't a valid part.=REGEXREPLACE(A2,"\*\QML|CL\E","")because I know that
,is the only punctuation in the titles - I've also tried this but not been successful.