Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

regular expression in oracle for including number and period

I need regular expression for which will remove all Non numeric character excluding. means it only include Number perid (.)

can anybody help me.

Thank you. Vijay Nalawade

like image 475
Vijay Nalawade Avatar asked Dec 01 '25 15:12

Vijay Nalawade


2 Answers

Try something like below:

     REGEXP_REPLACE('your text 12.133', '[^0-9\.]','')

This will delete all non numeric and non dot characters.

Please note: \ is required in front of . as . match any character. Details here: Oracle Regular Expression

like image 51
Yogendra Singh Avatar answered Dec 04 '25 07:12

Yogendra Singh


Regex [0-9.] matches only digits and .. Alternatively you can find replace other characters with an empty string using this regex: [^0-9.]

like image 21
Kirill Polishchuk Avatar answered Dec 04 '25 06:12

Kirill Polishchuk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!