Add a dot to a number


#1

Sorry, I'm a newbie to this.

I've been trying to add a dot at the end of one or more numbers by searching for \d and replacing it with \d. But that doesn't work at all.

There are three problems:

  1. I don't know whether to use action type "replace" or "replace with regular expression".
  2. I don't know how to replace a number with itself + a dot (e.g. "1" = "1.").
  3. The dot should only appear at the very end of a string of numbers ("123" = "123.").

Any idea?


#2

use reg exp on TITLE tag for instance: (\d+)
replace with: $1.

The () capture whatever regexp is placed inside and the + captures the digits until it can't find any more.

The $1 with the . Replaces the captured regexp with a . At the end.

Hope this helps.


#3

Great, Steve. That was very helpful.

It's just amazing to watch mp3tag change Hundreds of files in a wink.

Thank you. Thank you. Thank you.


#4

No problem. If your interested in learning regexp.

A great resource is www.regular-expressions.info/

I also bought a program called regexbuddy which is around $30 but definatly increases your learning curve a lot.

Glad to help and welcome to the forum.