Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Regular Expression to Check number with at least one decimal point

Stanley Lee-OracleNov 18 2013 — edited Nov 19 2013

Hi,

I would like to use the REGEX_LIKE to check a number with up to two digits and at least one decimal point:

Ex.

10.1

1.1

1

12

This is what I have so far. Any help would be appreciated. Thanks.

if regexp_like(v_expr, '^(\d{0,2})+(\.[0-9]{1})?$') t

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2013
Added on Nov 18 2013
3 comments
6,158 views