I'm trying to get a regex replace to format a time string by removing the leading zeros. I thought that this would work, but it's not. Any idea what I'm doing wrong?
ReplaceSRF$( "Regular Expressions object", TimeString$( "TimeString Object", "%I:%M:%S PM" ), "0?(:?\d|[1-9]\d):0?(:?\d|[1-9]\d):0?(:?\d|[1-9]\d) (:?AM|PM)", "${1}:${2}:${3} ${4}" )
Thanks!
Ben
Please login to see this attachment.