In CS3 you can GREP replace strings like this
$DA30
with a find field of
^\$\w+\d+
and replace it with
no field entry at all
And choose predefined paragraph or character styles using the MORE OPTIONS button.
It's quite easy to figure out... eventually
$ will search for the end of a paragraph location, but \$ will search for a dollar sign.
So if you did $a then it would find the letter "a" at the end of any paragraph.
But \$ finds that actual symbol.
\w+
that will find any word character, like "a" but if you put the plus sign "+" then it will find any word beginning with "a", like aplhabet, antelope etc.
Similar to the $ sign being used to find characters at the end of paragraphs the "^" starts it's search from just the beginning of a paragraph and nowhere else.
\d will find any digit, but \d+ will find any digit plus any other digits beside it.
So it will find 1 and it will find 100 and 1000 but it won't find 10A0 or 100A0, it will only find 10 and 100, not the letter... or the number after the letter.
So essentially the GREP search ^\$\w+\d+
^ the start of the paragraph
\$ the actual character "$" (not the end of paragraph location)
\w+ any word character plus the rest up to a break, i.e., a space or non-letter word character
\d+ will find any number plus the remaining numbers.
So ^\$\w+\d+ will find the start of the paragraph, the word characters and the digits, and you can choose to select which style you want each to find and replace.
By now you should realise that if you want to search the character "(" then you have to use the "\" and have it phrased like \( in the GREP.
There's loads more to it, but that's the gist of it for now and this particular problem.
I also liked the previous solution by Kathet... nice, but can be problematic. Ms Word is so dodgy, although I've recommended it myself for things that InDesign can't do... so no complaints....
