Need a little help with a simple script

Greetings 2 Trados Experts

I need to implant a little script to trados with a siple action

If a line contains  only a number X or a fraction X.X or X.X.X do a simple copy source to target without performing any other action.

This script need to have maximum priority formerly to other actions

Any ideas how can i perform this?

Trados Studio 2022 SR1 - 17.1.6.16252

Thank you!!

emoji