Currently working on a command in AppleScript to trim weight data we receive from a scale. We receive the weight in the following format ` X.XXX. lb. `
The Xs representing numbers. We’re trimming out 6 spaces before the digits as well as 3 spaces,`lb`, and 5 more spaces. 

Using the following command we’ve managed to trim characters and get the weight to read as `X.XXX..` in our files metadata:
~~~
 | sed 's/[.^0-9]//g'
~~~
We’re hoping to also trim off the two decimal points following the thousandth character in the weight data. Unsure of where to go.