![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Greetings, We are using Oracle 9i. Are regexp functions available in Oracle 9i, or was that introduced with 10? Given the following two strings: str_a='5838 MISSION CENTER RD #C' str_b='5838 MISSION CENTER RD C' or str_a='7576 PARKWAY DR APT #2A' str_b='7576 PARKWAY DR APT 2A' is it possible to write an expression in Oracle 9i that will return true if the only difference between the two strings is the presence of the '#' symbol? |
#3
| |||
| |||
|
|
Regular expressions were introduced in 10g. In your example, you can use the TRANSLATE function to remove the '#' sign and see if the two strings are equivalent: IF TRANSLATE(str_a,'#','') = TRANSLATE(str_b,'#','') THEN .... |
#4
| |||
| |||
|
|
Greetings, We are using Oracle 9i. Are regexp functions available in Oracle 9i, or was that introduced with 10? Given the following two strings: str_a='5838 MISSION CENTER RD #C' str_b='5838 MISSION CENTER RD C' or str_a='7576 PARKWAY DR APT #2A' str_b='7576 PARKWAY DR APT 2A' is it possible to write an expression in Oracle 9i that will return true if the only difference between the two strings is the presence of the '#' symbol? |
#5
| |||
| |||
|
|
Regular expressions have been available since version 8 in the OWA_PATTERN package. http://download.oracle.com/docs/cd/B...tt.htm#i999925 Not nearly as fast or robust as the 10g implementation but they are there. |
![]() |
| Thread Tools | |
| Display Modes | |
| |