I believe you'll have to make a Virtual Tag for this.
$IsNull(<Sample Rate>,,$RxReplace(<Sample Rate>,"khz|k","")
MB didn't take it as posted, but it worked with
$RxReplace(<TAG_TO_CHANGE>,"TEXT_TO_REMOVE","")
in the virtual tag formula box.
thanks for your help!
The Incredible Boom Boom's formula would work better in case there is no data available from the source tag.
(it only didn't work because parentheses work in pairs, and so there should be an additional closing one at the end of the formula)
Another approach could be this:
$RxReplace(<Sample Rate>,"([a-z])","")
It will strip all alphabetic characters, so you won't have to add specific exceptions. (such as VBR, if you would use this on bitrate)
The Incredible Boom Boom's formula would work better in case there is no data available from the source tag.
(it only didn't work because parentheses work in pairs, and so there should be an additional closing one at the end of the formula)
Another approach could be this:
$RxReplace(<Sample Rate>,"([a-z])","")
It will strip all alphabetic characters, so you won't have to add specific exceptions. (such as VBR, if you would use this on bitrate)
Oops, that's correct, I missed the last parentheses.
Also, yes, a little modification of @hiccup's $RxReplace formula would be best to get rid of all alphabetical characters.
$RxReplace(<Sample Rate>,"([A-Za-z])","")