GREP Indesign Find and Replace

I’m at my wits end on how to find how to find and replace this.

Find MEW1234

replace with WEW1234

All the M’s change to W’s, but ONLY if they are followed by one number. I don’t want to change MEWFIE.


First, what is your search GREP look like? What have you tried so far?

And just to be sure you want this:

MEW1234 → WEW1234

But not this:



Is the M always at the beginning of the word? is it always followed by 2 letters then 4 numbers? It is important to define the pattern of what we are looking for and also the pattern desired once replaced when dealing with GREP. This is why i’m asking such questions. Maybe you could provide 3 or 4 more examples of what to search and how it should look like once it is correclty replaced?

Model: MacBookPro8,2
Browser: Safari 534.51.22
Operating System: Mac OS X (10.7)