The following works for the given test data:

(^|[^0-9])(0\.[1-9]|1\.0|1)($|[^0-9])

regex101 example here

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top