how to replace false tracktype keys in style file?

I've noticed there are a lot of tagging mistakes have been made on OSM regarding tracktype={number} instead of tracktype=grade{number} Is there a simple formula (with regedit?) to replace this, like tracktype=1-5 > tracktype=grade(1-5) in the styles? At the moment I ignore those false keys but I would like to use this information instead of deleting it.

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, what about: \w*[1-5] some alphanumeric characters and then one number between 1 and 5. Henning -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTgIbkAAoJEKXggIeC16WPBqQH/jQJ32R4hyJt98DFuSQeR/RM XX2J4c20VmRJfIRhhrS+T1MiWEP2q/sleeGY/sls5/K7pcZbdffMbhv14wnGWO5t O7MY2sO+8J1mE3LEdTvUlkvZWMnurpkv6gJqbEQqfsqj3cRJH0Xy39HKWyL8jAB8 mtTvOFG5aDsglUhetGRNe61sIHKczTkQIBwTjtAzNq2o5jtNTaVGAlnYB+ikI//s kRaRW/a8j8tSUFY64oSbdDsAMKVq13NLXlgJYbsNtye44NyynoimMEYUFh6kYtGc qCNUyohYk40uqtXFcXef9d6mn7RsFyBgt0yV/iWosobYhWq2awc/l9tn36f7IFQ= =Xn/3 -----END PGP SIGNATURE-----

Hi Henning, Can you give an example for such rule in the style file, my knowledge of regexp is very limited ;-) How can you check if the tags are valid, like grade[1-5] is ok, and the rest is not ok? And can you automatically convert 1 to grade1 etc in one line, without having to type all the rules line by line? Henning wrote
Hi, what about: \w*[1-5]
some alphanumeric characters and then one number between 1 and 5.
Henning
participants (2)
-
Henning Scholland
-
Minko