Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Validate numeric values in strings

Validate numeric values in strings

From: Hendrik Lampert <henhouse_at_gmx.net>
Date: Wed, 23 Apr 2003 10:04:41 +0200
Message-ID: <b85hes$hqg$02$1@news.t-online.com>


Hi,

i 'm trying to extract a decimal value out of a string.

string_a: 'ab 123 cde-tt_rr'
string_b: 'ab123 cde-\#xx'

each valid numeric value must be separated by spaces. the substr 123 of string_a is valid and easy to check . how can i validate string_b? string_b does not contain any valid numeric value, because a space is missing. The Oracle function to_number runs into an error.

Thanks
Hendrik Received on Wed Apr 23 2003 - 03:04:41 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US