Need to remove whitespace and Chr (10) start and end of string
Hi allI have a requirement where I need to remove all the spaces and characters to carriage return JUST to THE beginning and the end of the string to preserve those within the chain
e.g. string is like
SELECT ' This is first Line '||chr(10)||' This is second line. '||chr(10)||' ' Input_String,
REPLACE(' This is first Line '||chr(10)||' This is second line. '||chr(10)||' ',' ','#') spaces_replaced,
REPLACE(REPLACE(' This is first Line '||chr(10)||' This is second line. '||chr(10)||' ',' ','#'),chr(10),'@') carriage_returns_replaced,
'This is first Line '||chr(10)||' This is second line.' Expected_String
FROM DUAL;
The expected output is expected_string on top of the query column.If I try with ltrim, rtrim, functions I need to write several combinations for first trimming Chr (10) and then spaces or first delete the spaces and then Chr (10) etc.
Is it possible to do this using regular expressions? Help, please.
Thanks in advance!
If I try with ltrim, rtrim, functions I need to write several combinations for first trimming Chr (10) and then spaces or first delete the spaces and then Chr (10) etc.
As Solomon, the two [url http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions096.htm#SQLRF00664] has already shown you LTRIM and RTRIM [url http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions160.htm#SQLRF06104] delete a character set of the designated part of the string.
What many combinations did you have in mind?
Concerning
Etbin
Tags: Database
Similar Questions
-
Help the bean Ticker - how get time initial and end of string
Hi all.
I use on a windows forms 11g Rel2 machine.
I try to get the report initial and end of the ticker bean time string.
According to the documents, you must proceed as follows:
fbean. Invoke ("CONTROL. BEAN_AREA', 1, 'getTimeString');
While I did it, and no error is reported, I don't know how to store that value to a variable of forms. The idea would be to tell the user the time it takes to run a particular process. To do this, it would be nice to get the initial report and end time.
I guess this could be done using an EVENT WHEN CUSTOM-POINT and: system.custom_item_event, etc. but have no idea how to go on this issue.
Help will be greatly appreciated.
Best regards, Luis... :))Method to obtain the time of currzent:
Declare cur_time Varchar2(100); Begin cur_time := fbean.invoke_char ('CONTROL.BEAN_AREA',1,'getTimeString'); End;
François
-
Original title: remove unnecessary files
I need to remove the uneeded files: Purenetworks and PCFix. But I get: not deletenmrsrc.dll: access denied make sure the disk is not full or write protected and that the file is not in use.
Ditto for PCFIX.exe.
How can I remove these and clean unnecessary files? Thank you.
Hello
1. how exactly you are trying to remove it?
2 have you connected the administrator account?Step 1: Check if the problem persists in the clean boot state.
From your computer by using a minimal set of drivers and startup programs so that you can determine if a background program is interfering with your game or program. This type of boot is known as a "clean boot".
Reference:
How to configure Windows XP to start in a "clean boot" State
http://support.Microsoft.com/kb/310353
When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
1. click on start and then click Run.
2. type msconfig and click OK.
The System Configuration Utility dialog box appears.
3. click on the tab general, click Normal Startup - load all services and device drivers and then click OK.
4. When prompted, click on restart to restart the computer.
Step 2: Take possession of these program at the following location folder, and then check the issue. C:\Program Files\
Reference: How is ownership of a file or a folder in Windows XP
-
did a virus check - found two viri and the need to remove them.
She returned with 2 virus here is what he says c/windows/temp/crfooosetup.exe/unwiseooof.bin issued by microsoft Corp., he said it twice he said it, the file is signed with a broken digital signal doed ayone know what this means and how can I solve this problem please help my pc is really slow it is an acer Apire 3100 windows xp media center edition version 2002 service pack 3 and also should I upgrade to Windows 7
Hello
All files in the TEMP folder can be removed by using disk cleanup you do not here.
Do not perform any upgrade suggestions while there is no threath of malware on the computer.
To upgrade to Windows 7, you should check with the manufacturer of system and various device manufacturers to ensure
There is some BIOS, drivers from the chipset level low and other important drivers for your system. Check their
forums for known issues with an upgrade.Run the Upgrade Advisor, and check with the center of compatibility for your key features.
Some system manufacturers also have an online help and information for the upgrade to Windows 7.Windows 7 Upgrade Advisor <-- run="" this="">--> http://www.microsoft.com/windows/windows-7/get/upgrade-advisor.aspx
Also check the Compatibility Center - for major appliances
http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx---------------------------------------------
You can use the Upgrade Version.
The upgrade to Windows 7: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows7/upgrading-to-Windows-7-frequently-asked-questionsUpgrading to Windows 7
http://Windows.Microsoft.com/en-us/Windows7/products/upgradeUpgrade Windows XP to Windows 7
http://Windows.Microsoft.com/en-us/Windows7/help/upgrading-from-Windows-XP-to-Windows-7====================================================================
If you need search malware here's my recommendations - they will allow you to
scrutiny and the withdrawal without ending up with a load of spyware programs running
resident who can cause as many questions as the malware and may be harder to detect as
the cause.No one program cannot be used to detect and remove any malware. Added that often easy
to detect malicious software often comes with a much harder to detect and remove the payload. Then
its best to be thorough than paying the high price later now too. Check with them to one
extreme overkill point and then run the cleaning only when you are sure that the system is clean.It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
the regular windows when you can.TDSSKiller.exe. - Download the desktop - so go ahead and right-click on it - RUN AS ADMIN
It will display all the infections in the report after you run - if it will not run changed the name of
TDSSKiller.exe to tdsskiller.com. If she finds something or not does not mean that you should not
check with the other methods below.
http://support.Kaspersky.com/viruses/solutions?QID=208280684Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
(If Rootkits run UnHackMe)Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
Malwarebytes - free
http://www.Malwarebytes.org/products/malwarebytes_freeSuperAntiSpyware Portable Scanner - free
http://www.SUPERAntiSpyware.com/portablescanner.HTML?tag=SAS_HOMEPAGERun the malware removal tool from Microsoft
Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.
You should get this tool and its updates via Windows updates - if necessary, you can
Download it here.Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
(Then run MRT as shown above.)Microsoft Malicious - 32-bit removal tool
http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=enMicrosoft Malicious removal tool - 64 bit
http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=enalso install Prevx to be sure that it is all gone.
Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
here or use Google to see how to remove.
http://www.prevx.com/ <-->-->
http://info.prevx.com/downloadcsi.asp <-->-->Choice of PCmag editor - Prevx-
http://www.PCMag.com/Article2/0, 2817,2346862,00.aspTry the demo version of Hitman Pro:
Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
(viruses, Trojans, rootkits, etc.). who infected your computer despite safe
what you have done (such as antivirus, firewall, etc.).
http://www.SurfRight.nl/en/hitmanpro--------------------------------------------------------
If necessary here are some free online scanners to help the
http://www.eset.com/onlinescan/
-----------------------------------
Original version is now replaced by the Microsoft Safety Scanner
http://OneCare.live.com/site/en-us/default.htmMicrosoft safety scanner
http://www.Microsoft.com/security/scanner/en-us/default.aspx----------------------------------
http://www.Kaspersky.com/virusscanner
Other tests free online
http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1--------------------------------------------------------
After the removal of malicious programs:
Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
system files.Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup
RUN - type in the box-
sfc/scannow
Then run checkdisk (chkdsk).
RUN - type in the box-
Chkdsk /f /r
-----------------------------------------------------------------------
If we find Rootkits use this thread and other suggestions. (Run UnHackMe)
================================
For extreme cases:
This traditional antivirus analysis does not always detect. Because the Norton Power Eraser
uses aggressive methods to detect these threats, there is a risk that it can select some
legitimate programs for removal. You should use this tool very carefully and only after
you have exhausted other options.
http://us.Norton.com/support/DIY/index.jsp================================
If you are in North America, you can call 866-727-2338 for virus and spyware help
infections. See http://www.microsoft.com/protect/support/default.mspx for more details. For
international information, see your subsidiary local Support site.I hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">->
-
Satellite Pro P100 have to remove battery and reinsert to be able to start
Hello
I have a new problem that has developed since I started to use a hub to current alternative advent with my computer pro satellite P100 laptop. If I leave the hub to power AC plugged into my laptop & it turned off for a while (off, standbay etc.) then I get no response from the power button (not fans of lights etc) when I try to start later. Then I have to remove battery and then reinsert it after 5 seconds or connect cable CA without it.
Just reseating the cable it makes no difference, the battery must be removed for at least 5 seconds to start again.
I realize that the hub may be the problem but why? should I avoid the hubs to current alternative (it could be allowed to use the hub with/without power but its flaky when I do this. Details of hub below.
http://www.PCWorld.co.UK/martprd/product/SEO/data+storage/accessories/external+expansion+hubs/advent/4+port+desktop+hub/266896My battery is endangered, or is it my computer laptop is the hub?
If you have had a similar experience, I'd appreciate your opinion.
Hello
I had a similar problem on my old laptop (Toshiba no).
The laptop did not start when an external USB device was plugged it
I put t know exactly why it happened, but I assumed that there was a compatibility problems between this special device and my notebook.
If another USB device was connected so successfully booted the laptopMaybe this hub to current alternative is not totally compatible and cause this problem
-
I have the iphone 6, since yesterday it does not open a lot of apps, they look just as they open you and then it comes out of the application itself, and I need information in my apps so I can just remove them and reinstall
Have what troubleshooting you done? Surely you have tried something before posting here, Yes?
Hold power and home until is buttons restarts.
-
HP G72269 has a bios password set in and I need to remove it
HP G72269 has a bios password set in and I need to remove it
American test.
43161865
REO
I must inform you that these services are not endorsed by HP, and that HP is not responsible for any damages that may occur to your system using these services. Please be aware that you do so at your own risk.
-
I need to remove microsoft winterpack 2004 but can't and I need in simple terms please help
It is always with the 1713 error code to remove it and I is not that good on Paolo so I need thank you very simple steps
Hi ChristineHoward,
1 Windows operating system you are using?
You can read the following article and see if it helps.
Hope this information is useful.
-
globalsurveyfreebies.com this is the site it says can cause problems. I need to remove it
It looks like globalsurveyfreebies.com may be the virus.For more security, download the free version of this tool. First check the updates and then run a full scan.Malwarebytes Anti-Malware
http://www.Malwarebytes.org/products/malwarebytes_freeAnd then, I'd stay away from this site. -
My cntrol of flight went I try toput it back in the taskbar and it says that I need to go to ad remove programs and install Sndvolcon32exe but this is not how can I solve this
Hello
Follow the steps listed in the link below: Volume icon is not displayed in the notification area, and you may receive an error message when you try to add: http://support.microsoft.com/kb/319095
With regard to:
Samhrutha G S - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
It is a new work computer, not my personal machine. Our main piece of software, ACT! 2000, will not work on W7. We bought the new law! 2010, but he does not play well with the rest of the desktop computers, server included. I know that the best thing to do would be to upgrade to Windows 7 Pro, and then load Windows Virtual PC to run XP. But because of $$$ and $$$ already spent on this new computer, upgrade to W7 Pro is not on the table right now.
And am not extremely computer, but I get. :) I did a lot of reading on the erasure of Windows 7 & install XP, and I've seen a lot read on hardware/driver problems: ATA, AHCI and SATA configurations... now I'm just lost.
Is there someone who can tell me, in terms of Joe 6-pack , how to proceed?
Once, my new Dell Inspiron 560 came loaded with Windows 7 Home Edition, and I need to remove it completely and install Windows XP, I have the disc.
Thanks a bunch!
Unfortunately, Dell provides Windows XP drivers for this system, so any installation of Windows XP is not supprted by Dell andcan not work and even install
To install winxp you need a retail version of Windows XP, you must then boot from winxp cd and perform a clean installation
-
LAN printer prints not - need to remove and add another printer to obtain a paper copy. Intermittent problem.
http://TechNet.Microsoft.com/en-us/library/bb727037.aspx
Have a read of the link above re Vista file and printer sharing.
Permissions/Share info is there as well.
See you soon.
Mick Murphy - Microsoft partner
-
I have a break next to my black cloud icon symbol creative. Why and what it means? I need to delete .omb file 1 / 3 starts. Frustrating!
In addition, there is nothing in my OOBE folder. Usually, it rebuilt itself once its content is deleted and I restart the computer.
Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
Don't forget to stay signed with your Adobe ID before accessing the link below
Creative cloud support (all creative cloud customer service problems)
-
Somehow, I downloaded and installed Adobe alleged DC update for the existing acrobat Reader installed on my laptop.
DC app has been a disaster for me in terms of generation of convoluted navigation and extra work.
In addition, I do NOT trust or want an application based on a cloud because of the deep and hard-learned risk, privacy and security, as well as the occasional loss of connectivity online and access, what urgent needs can get GROUND in terms of use of such an external cloud-based application.
Issues related to the:
[1] how to save a PDF downloaded and open directly on my laptop, a report file to save the file in the cloud and then copying it in the folder of the laptop? This process in several steps inside the DC is a frustrating PITA, as Adobe Acrobat Reader has been sufficient for my needs.
can [2] Alternatively, I remove CD and install the latest version of Adobe Acrobat Reader, which is thin and easier to use for my needs and much, much more secure?
Thank you very much in advance for the help and deliberate in a timely & the readers attention. Today is Tuesday, November 3, 2015.
Kind regards
Stephen H. Franke
E-mail: shfranke@hotmail... com
Hi stephenf95557665,
(1) you can simply save the file on your computer as allows you to save in the older version of the player, it is not necessary to register I your cloud of document.
If you save the file to the document cloud, you will be able to access any system from anywhere.
(2) If you still think earlier version users need, then they can probably uninstall the last being & reinstall the old version using this link http://get.adobe.com/reader/enterprise/
Kind regards
Nicos -
REGEXP_REPLACE remove the start and end quotes.
Hello guys,.
I have a problem with my regular expression and I hope someone can help me with this?
Imagine the following sample_data:
{code}
WITH sample_data AS
(
SELECT "'[email protected] "' double UNION ALL e
SELECT "'[email protected] ' double UNION ALL e
SELECT ' [email protected] "' double UNION ALL e
SELECT "'[email protected] "' double UNION ALL e
SELECT ' [email protected] "' double UNION ALL e
SELECT "'[email protected] ' like e dual FROM
)
SELECT e, REGEXP_REPLACE (e, '(^'')? (. *) (''$)', '\2')
OF sample_data;
{code}
I would like to remove all the quotes of beginning and end of the email. I made previous regexp, but she does not return the correct result. I know not why, but for some reason, when my email ends with a quote, the main quotation is not deleted.
Can someone help me with this?
Thank you
Another solution...
WITH sample_data AS (SELECT '''[email protected]''' AS e FROM DUAL UNION ALL SELECT '''[email protected]' AS e FROM DUAL UNION ALL SELECT '[email protected]''' AS e FROM DUAL UNION ALL SELECT '''[email protected]''''' AS e FROM DUAL UNION ALL SELECT '[email protected]''' AS e FROM DUAL UNION ALL SELECT '''''[email protected]' AS e FROM DUAL) SELECT e, REGEXP_REPLACE (e, '(^''+)|(''+$)') FROM sample_data
Maybe you are looking for
-
T420 W7 Base system device driver does not
Hello After reinstalling W7 the lenovo Solution Center complained by saying that the system device driver does not work. I saw that the SD card reader was not working and so I covered the missing pilot was that one. The Lenovo page I downloaded the d
-
no electronic printing full .exampe htoel reservstions confirmation
-
Printer banding in portrait mode only and only with the small font size
Grayscale printing let horiz white stripes in portrait, not landscape. Bands are equidistant policies 48 pt or less, does not occur on larger fonts. Band spacing varies from 1.5 to 2 cm according to the size of the font. Band occurred using Word or P
-
N Alvorix-RS880-formfat (Alvorix) motherboard
I'm having a problem with the computer restart randomly under heavy load, sometimes even a light load. I narrowed down it to a short circuit in the last two RAM DIMMS #3 or 4 or both. I would like to replace the MB with little or no change of materia
-
Export settings - incorrect page layout
Hi guys,.You wonder if you can help me, I hit a dead end! Thus, the first image shows a screenshot of my indesign document hence is the median line. However, the two images show the export. The second image is the first page where it ends and adds at