alias ms.timestampfmt.fix {
var %timestampfmt = $timestampfmt
if ($regsub(%timestampfmt,<re>,$+(s.,$right($calc($ticks - %ms.timestampfmt.fix),3)),%timestampfmt)) { timestamp -f %timestampfmt }
}
this will match ##:##:##.###
but it sounds like you want
this will match !!:!!:!!.### where ! is anything a-z,A-Z,0-9
alternatively, you could have
this will only match AA:aa:aa.### where AA is upper, and aa are lower, letters only
I'm not sure what exactly you require, and there may be a better expression to use, I've never really played with regex before, but I did test these to confirm they match how I stated.
hope this helps,
HobophobE