Reputation: 19
Using Oracle
,
Sample:
22nd street westlake 1378 california city 32nd street texas 1111 houston city
Result:
California city Houston city
Sample:
22nd street westlake 1378 california city 32nd street texas 1111 houston city
Result:
22nd street westlake 1378 32nd street texas 1111
updated the question. thanks
Upvotes: 0
Views: 163
Reputation: 35930
It seems like you need to remove string or numbers from your string.
Try to use regexp_replace
as follows:
1.
regexp_replace( '1378 california city 1111 houston city' , '[^0-9 ]')
regexp_replace( '1378 california city 1111 houston city' , '[0-9]')
Check the complete example here: Db<>fiddle
Upvotes: 1