How can I refer to a variable in the regular expression
Hello friends,I have this Regexp, extract the County code: (971)
Select regexp_replace (regexp_replace ('05-000971 7910-324324', '\D'),'^ 0 * (971)? 0?') of double;It is very good and the need...
But, thinking about the future, someone may need to remove the country code (961), so it is better if I put the code in a variable, but
How can I list the County code via a variable since the Regexp:
declare
a varchar2 (15);
code number := 971;
begin
select regexp_replace(regexp_replace('000971 05 7910 - 324324','\D'),'^0*(code)?0?') into a from dual;
dbms_output.put_line ( a);
end;
but it does not work?Best regards
Fateh
You must link the value of the variable code in the regular expression pattern
select regexp_replace(regexp_replace('000971 05 7910 - 324324','\D'),'^0*('||code||')?0?') into a from dual
Tags: Database
Similar Questions
-
How can I insert a continuation variable in the Index?
Hello
Many of the entries in the index of some of my level 1 manuals may have long lists of level 2 entries under them, and sometimes it will break the long list of columns or pages. I would like to start the new column or page with "Topic A," before returning to the list of entries of level 2 (where "Section A" is the level 1 entry). How can I do this? So far, I have two choices to deal with long lists of level 2 entries that break between pages/columns: (1) insert a page or column break before the level 1 entry, which can make this very short column with lots of empty space (doesn't look very good), or simply allow the entry of level 2 list to break without trying to keep the whole list in a single column. Sometimes, this works well, but there are times when no solution is sufficient and I would like to be able to inform the user that a list back to page 3 of the index is in fact the continuation of the same list on page 2.
Online help provides instructions for inserting variables continuation in the tables. I was unable to find information on how to add to a long list of Index entries.
I use FM version 8 for Windows (XP). However, I remember being able to do several years (between 1997 and 2002), so that this feature was present in early versions of FM unfortunately, I can't remember how to do it.
Thanks for any help!
Joyce
You must use a third-party utility, such as he is not a native capacity of FM. I suggest you Index Tools of Silicon Prairie (see: http://www.siliconprairiesoftware.com/Products.html).
-
How can I target a captivate variable go a web object
How can I target a captivate variable go a web object
window.parent.window.cpAPIInterface.getVariableValue ("cpQuizInfoStudentID");
window.parent.window.cpAPIInterface.setVariableValue ("yourVariable", "" value");
Window.parent.CP.Enable)
Window.parent.CP.Disable)
Window.parent.CP.Show)
Window.parent.CP.Hide)
-
How can I find my serial number of the product that I downloaded?
How can I find my serial number if the product has been downloaded. I had to re put the operating system and now Adobe application serial number.
Hi shellsy,
Which service do you use?
Please refer to this FAQ:quickly find your serial number
Kind regards
Florence
-
My computer with two hard drives and 2 starting systems has the car crash in the solid state. When I got the new drive and tried to restore from time capsule, I lost some data. How can I see what backups are on the time capsule? My laptop is also saved to the time capsule. Everything is in 'Data' when I look through the Airport utility. I think that the information that I've lost are still there since I was a Capsule 3 to.
Time Machine backup to a sparsebundle.
The sparsebundle will use the share name of computer. So, it should be obvious who is your Macbook and that is your Macpro.
Open the sparsebundle in Finder and keep open the subfolders until you get to the backup of each separate hard drive...
You has of course set the exclusion in Time Machine?
By default, Time Machine will exclude your second drive unless you have included it. Did you?
Once you get to this level during the backup, you can do a full restore manually whenever you want.
-
How can I add a separate apple for the iphone and ipad wife id
How can I add a separate apple for the iphone and ipad wife id
Hi, are the measures already implemented? If they are, you need to configure them again and establish a Apple ID at this time.
-
My iPhone6 has convinced himself that he has a helmet connected - how can I convince otherwise and return to the normal setting? I tried turning it off and back on after awhile, but did not.
Double check with a magnifying glass and a good lighting that nothing has been slain. Then, try insertion and withdrawal of your headphones a couple of times. If this does not work, it may be while the shooting went wrong. In this case, make an appointment at the Genius Bar at your local Apple store for the assessment.
-
How can I remove a credit card on the app store?
How can I remove a credit card on the app store? I can't download apps because it makes me sign then goes to check and it keeps saying method declined.
< re-titled by host >
Click here for an asnwer.
Change or remove your information from payment of Apple ID - Apple Support
Hope this helps, good luck to you.
-
I received a prompt on my Ipod touch 5th generation yesterday, that there is a new update of the Messenger application. So I tried to update, however, the app is now stuck on the phase "Waiting."... "and the logo has been disabled. I still get notifications of new messages from the app, but I can't open. I tried to remove and then reinstall the application but the application did not and the app store think that I always opened it. How can I fix this or return to the previous edition that worked?
Thank you in advance!
Hello cfossum,
Looks like you have problems with a third party on your iPod touch app, since the Messages belongs to iOS and you would receive separate not quickly update.
The resources below will provide some troubleshooting steps for the problem you are having with the Messenger application.
If an application you have installed unexpectedly closes, unresponsive, or does not open
Take care.
-
How can I get FireFox to work on the first version of the Google ChromeBook? Everytime I open it it said to update or upgrade to FireFox and make it your main page. So I downloaded it and it's open once it is installed, but then a message appears that says "can't stand" search for an application that supports FireFox and its software, or something of the sort. I was sitting here with a full battery when I started and now it is dead... and I still don't have FireFox on my ChromeBook.
What do I do now or how do I get it to work? And if it just simply won't work on a CHromeBook then they need to have that riht out in the open.
Hello
I had a peek in this and was informed that Firefox does not work on Chrome OS.
It is designed and done a little differently from the likes of Windows and Linux and will not support another browser being installed.
-
How can I get a new category in the list?
I have included a number of events of the churches, using the calendar in Thunderbird, but whenever I have to add 'Church' as a new category, even if I already added. How can I get a new category in the list? It might also be useful to be able to get rid of the categories that I'm probably not want. Is this possible?
When you add the new category?
If added to the event entry so it is an addition of time.
You go to Options-calendar-categories and add is there to be a permanent choice. There is also a button to delete it. -
How can I use my watch to snap the shutter on my iPhone?
How can I use my watch to snap the shutter on my iPhone?
Click here > https://help.apple.com/watch/
Then click on: Remote Camera on the left.
You'll see instructions.
-
How can I download a screen shot to the page in question?
How can I download a screen shot to the page in question?
You can't attach an image to the first post which creates a thread. You need to add another post (second) to fix an image.
-
The tab "Getting started with Mozilla Firefox" (as well as my default homepage on another tab) charge whenever I start Firefox. How can I stop this tab open at the start of the program?
If the above did not help, then also see the following articles for more suggestions:
-
How can I open disc with .fpbf? The disc has some pictures I would like to see.
How can I open disc with .fpbf? The disc has some pictures I would like to see.
It is not a photo format, this is a backup image
Maybe you are looking for
-
How can I get my data sync on my computer without using another device?
Hello I had to completely back up my computer and reset it to factory settings. Before that I did, I used Firefox Sync and made an account so that I don't have to reinstall everything manually. Now I don't know how to get the information on my comput
-
ThinkPad L460, cannot get the BIOS through WMI settings
We used the official instructions and VBscripts Lenovo to set up the BIOS on the laptop ThinkPad T440, T450, L440 and L450 via WMI. It worked well for a while now. A few weeks back, we received our first batch of portable computers ThinkPad L460 (wit
-
Equium A60-173 does not start after the BIOS update
Hello people, I downloaded a BIOS updated toshiba for my Equium A60 - 173 and while it was loading on, restarted my laptop. Now, whenever I turn it on, the power light comes on for a few seconds, there is nothing on the screen and then it turns off a
-
Touch smart 520: will the same work of recovery for the smart touch 320 and 520 disc?
I have 2 computers which were to have the drive to clean up. They tell me that I needed to first create a recovery. Can I order a set of disks and reinstall on both?
-
I just scanned a few photos in color and have the proper color settings, then I printed a few color photos and now I can't scan in color, yet can still print in color. All cartridges are full. What gives?