Ok I have a document that has some inconsistent prices in descriptions of cars.
For example some prices do not have a $ in from on them.
Also some of the preceding sentences do not end on a period and all the descriptions need to punctuate the same.
So I need to search for a space 2 digits and a , and replace it with a . space $(whatever 2 digits where found and the comma)
My grep search looks like this
How do I replace the \d\d with what ever was found.
TV, DVD, tons of cabinet space, washer/dryer combo #61F01620 19,995.
Needs to look like this
TV, DVD, tons of cabinet space, washer/dryer combo #61F01620. $19,995.
To replace with found text, use $0 for all or $1, $2 etc
in your example, find needs to be like this
your replace would be
That finds your two spaces and your two digits followed by the comma, and replaces with a period, a space, a dollar sign and the two found digits and comma.
(you have to use the slash before the first dollar sign, so show that you want a literal dollar sign, because it can be used for other things in the Grep change box)
Works great, this will also help with some other "inconsistencies) in
the text file