Paul,
Which parts of your example are fixed and which are variable: could you have "a.Price" or "mmmm.Price" or "x.PriceThatIWasCharged" etc.
Also, can there be anything else in the text that is passed to the regex that can look something like the target string but is not to be matched: "3.14" for example
Without seeing the pattern that you tried, I'm guessing that it was something like
(m\.Price)
and the replacement string was something like
[$1]
If you want to match "m.Price" but NOT "m.PricePrev" or "am.Price" then you might try:
(\bm\.Price\b)
where the '\b' means to match a word boundary - in this case the "word boundary" is defined as one of the characters "a-z" and '0-9" or the underscore on one side and any other character on the other (either way around).
However, if you wan to match some of the other possibilities I suggested above, then you really need to tell us what really makes a match.
Susan