What is your usecase?
Is this a one-off conversion? Like, you want to load some file(s) into an editor, convert them once, save them, and thats it?
Or is it something that happens in an application you wrote (or are about to write)? So your app receives some data (file/stream/input), and needs to convert that data?
In either case, you can use regex to find occurrences of this kind of data. (?<[\(;])u(\d+):u(\d+)[;\)]
Or write a pascal routine that can find it (i.e. find each "max" or other token that can contain such data, and then parse after it).
Once you have the data, you can write a "for" loop to expand it.