Find and replace not working for replacing oz. at the end of a text field. I need to convert into a number to get a sum

Issue: In my app, I’m working with a text field that contains values like “10.6 oz.”. I’m trying to remove the " oz." part from the end of each value. So I can convert it into a number to get a sum for weight.

I’ve attempted using regex patterns like “oz.$”, “oz.\s*$”, and others with the “Find & Replace” action, but unfortunately, none of them have successfully removed the " oz." part.

Any advice on a proper regex pattern or an alternative approach to effectively remove " oz." from the end of the text field values in text field

Have you tried using the “Convert to number” operation?

Yes it will not work because of oz. at the end.

I got it working I switched off arc browser to firefox