replace the digital value with spaces
Hi I'm new to reg_expsI want to replace the number that appears under the string with white spaces.
I want to remove the number and also the text that is concatenated with the number.
That's what I want to achieve.
for example
I / p: 20 years of service... I won 2 awards in 2 years... .next award in 4th or 5th year '
o/p: ' years of service... I won prizes in these... .next year or award '
Can someone please help.
Thank you
How is that?
SQL> with t as (select '20 years of service.....I have won 2 awards in these 2-years ...next award in 4th or 5th year' txt fr
om dual)
2 select regexp_replace(txt,'[[:digit:]]+[^ ]*',' ')
3 from t;
REGEXP_REPLACE(TXT,'[[:DIGIT:]]+[^]*','')
-----------------------------------------------------------------------------------------------------------------------------
-------
years of service.....I have won awards in these ...next award in or year
1 row selected.
Tags: Database
Similar Questions
-
Replace the Null values with zero in MDB
Hello
How can I replace Null values with zero in MDB. I tried NVL (column_name, 0), he said: syntax error.
Thanks for your time and your help.Hello
In the layer of Buisenss you always use IFNULL (column, 0)
Concerning
AdilPublished by: adil.harrab on April 8, 2011 17:33
-
Replace the digital signature with handwritten signature?
Is it possible for someone to doorwindow sign a pdf document, and the signature to this person blocks converts written signature? any help in this would be helpful. Thank you
Reply to Dhingra Sukrit refers to other than digital signatures. If you want to use the digital signature, you can create a custom look. Take a picture of your signature and place this image in your custom look (preferences-> Signatures-> design & appearance-> more...). You need Acrobat. You can create custom Reader appearances.
-
Replace the NULL value with some characters
Hi all
I am writing a query to get the name of the contact and the age of a table. the age column has some value, I want these nulls to be replaced by "N/a".
I user NVL ("age," n/a ")
but it gives an error
ORA-01722: invalid number
Please suggest.
Thank youHello
You must convert the age in tank to be replaced by the string of characters in the case opposite number
Then use this
select name, nvl(to_char(age),'N/A') from myage;
Concerning
-
Re: Tecra A9 - 11M - replace the HARD drive with a larger
I have a Tecra A9 - 11 M with Windows XP Professional installed. I would like to replace the hard drive with a larger drive and install Windows 7 Professional.
Any suggestions on recommended records say 500 MB?
Difficulties to install Windows 7 on this model?
Hey,.
> Any suggestions on recommended records say 500 MB?
I assume you mean 500 GB and not 500MB, right? ;)Well, the Tecra A9 already supports SATA interface and there is no limit of capacity on SATA interface, so you can install a 500 GB HARD drive or more (750 GB, etc.). Just make sure that it s 2.5 SATA HDD.
You can choose each brand of HARD drive because each model will not work. You can buy a Toshiba HDD, Western Digital HARD drive or another. No problem ;)
-
Replace the string value of table
with cte as)
Select val '123', 'abwec' double val1
Union of all the
Select "456" val, "mowerw" double val1
Union of all the
Select val '709', 'wkwere' double val1
Union of all the
Select val '078', 'awerwewerwreq' double val1
)
Select * from cte;
-incoming string
"asdasd123ewrwer@87w8eopiu456werwer@asdwer709@ewrwerewrwqqwezxder078 @..."
need to replace like 'abwec' 123 and 456 as "mowerw" and 709 as wkwere and 078 as 'awerwewerwreq '.
How to replace the string value of the string
I'm going to the table which will have mapping information I need to see the incoming string and replace the appropriate value of the val to val1
something like
Of
"asdasd123456werwer@asdwer709@ewrwerewrwqqwezxder078ewrwer@87w8eopiu @..."
TO
"asdasdabwecewrwer@87w8eopiumowerwwerwer@asdwerwkwere@ewrwerewrwqqwezxderawerwewerwreq@..."
By using the TYPE clause.
with cte as
(
Select val '123', 'abwec' double val1
Union of all the
Select "456" val, "mowerw" double val1
Union of all the
Select val '709', 'wkwere' double val1
Union of all the
Select val '078', 'awerwewerwreq' double val1
),
input_tbl
as
(
Select "asdasd123ewrwer@87w8eopiu456werwer@asdwer709@ewrwerewrwqqwezxder078 @..." input_str
of the double
)
Select max (input_str) Dungeon (first order by desc NWR dense_rank) input_str
de)
Select rno, input_str
de)
Select rownum NWR
val
val1
input_str
count (*) over() cnt
from cte
Cross
Join input_tbl
)
model
dimension (NWR)
measures (val, val1, cnt, CAST (input_str AS VARCHAR2 (4000)) input_str)
(
input_str [any] = replace (nvl (input_str [cv () - 1], input_str [cv ()]), val [cv ()], val1 [cv ()])
)
)
-
How to compare the new values with the old values in triggers.
Dear all,
Please tell me how to compare the new values with the old values in triggers.Hi, the employee example is in the document. You'd better read yourself.
CREATE OR REPLACE TRIGGER Print_salary_changes BEFORE DELETE OR INSERT OR UPDATE ON Emp_tab FOR EACH ROW WHEN (new.Empno > 0) DECLARE sal_diff number; BEGIN sal_diff := :new.sal - :old.sal; dbms_output.put('Old salary: ' || :old.sal); dbms_output.put(' New salary: ' || :new.sal); dbms_output.put_line(' Difference ' || sal_diff); END; /
-
Is it possible to replace the hard drive with an SSD? or would it be too expensive?
Is it possible to replace the hard drive with an SSD?
or would it be too expensive?
Yes. There are several alternatives. I found a way relatively inexpensive, using a map of mSATA (very small SSD) and an adapter to connect it to the connector IDE 44 pin internal of my PowerBook. It works very well. Rather than repeat what I posted previously, you can watch these two topics (which also has good info, other users)
Re: This win to install a SSD drive in a PowerBook G4?
Re: SSDS (my post is halfway - "this is how I did with my trusty Pismo...) »)
FYI - I have used the adapter is even cheaper now
-
Qosmio X 500 - 10W - can I replace the HARD drive with another?
Hello
I have a Qosmio X 500 - 10W with two drive HARD Toshiba MK5055GSX 500 GB 5400 RPM 8 MB? SATA II but is one of the hs so I'm wondering if I can be replaced by a more powerful style, drive HARD 750 GB 7200 RPM / min 16 MB Toshiba courses?
Thank you
Hey,.
Your question is a bit hard to understand, but I think you want to replace the HARD drive with another (faster) model, right?
Well, that s no problem. 7200 RPM hard drives works, they are a little stronger, but they're faster so if you need more performance without problem.
750 GB or more are also no problem because the SATA interface is not the limited capacity. Theoretically 1 TB or more should also work.Anyway, you can buy the 750Go you mentioned that it will work. :)
? -
I have a wired to the internet using my base station for 4 expresses the hard extreme airport. I want to replace the base station with a time capsule.
It is also easy to replace the existing base station and adding the name of the network and the password?
You should be able to transfer your configuration of your current access point to new, and then you would just set up the internal drive, try to look at these articles:
ith-new http://www.TechRepublic.com/article/apples-Airport-extreme-out-with-the-old-in-w.
-
ThinkPad Edge S430 - is possible to replace the hard drive with an ssd?
Hey, Lenovo,.
I bought a Thinkpad Edge S430 and wonder if it is possible to replace the hard drive with an ssd?
Kind regards
Mikael
-
I need to replace the enlarged image with poplet image when you click on & also need a zoom internal on the big picture. It doesn't seem to be a simple way to do this. Js is available for this please?
Just drag brett [at] prettydigital.com email Glenn.
I think that your after...
-Wide product displayed by default, click left and right you have a cursor of all images of poplet
-Hover over the big picture without clicking, it's a zoom of the image or (which I think would be better) you click that or one of the poplet images and you have a model coming with a larger image.
-
Automatically replace the jpg files with the same file name TIFF.
Is there a a way to automatically link the files by replacing the jpg files with the same exact file name TIFF?
Thank you!
Click on the link in the links Panel and open the Panel menu. Choose repeat the link extension.
-
I downloaded red CS6 plugin and added to the contents of the package, replaced the existing files with the new without saving, now my thumbnails images RED and the color correction do not WORK! How to bring back my old file importerRed! ?? Help!
Try asking in the forum Premiere Pro seems to be an Adobe first Pro Lab
-
Replace the Oracle Logo with the logo of the customer
Oracle Forms Wizard has created a form with "Oracle" logo in the upper right.
How to replace the 'Oracle' logo with another logo?create your own menu in forms, save it under lety tell MYMENU.mmb, build, and then to assign MYMENU in the property of your form module menu (the mmx-file of the menu must be in your path of forms)
Maybe you are looking for
-
IPad on the same wireless network private Wi ' Fi as computer windows 10, Android phone and Samsung printer airprint. Blue tooth is disabled. Can I wireless print with Android mobile phone, but not with the IPad... suggestions.
-
Satellite L - FN keys drivers?
Hello! I need the driver for the FN keys to work. So I can turn on/off the wireless network and other functions. I searched the Toshibas Web site, but I don't know which one to choose? Thank you!
-
I was wondering is there a tool that can save my favorites on the SD card?
-
Activation error: 0xC004C003 after upgrade to Windows 10 8.1
Last September, I bought this computer, it is Toshiba Satellite L50-A-19N, he was originally Windows 8, I've updated for Windows 8.1 and it enabled all the time until the upgrade of Windows 10, now it shows "error code: 0xC004C003" which means that t
-
Desktopo ICONS is more you take to .exe for the requested program files
When you click the IE popup screen, "what program you want to open this file with" appears. Didn't start doing this until about 5 weeks ago. How to restore the immediate execution of the icon click-ons?