Can you please confirm that this Regexp does the need
Hello,
I am using this Regexp to make sure that the value:
contains only numbers
Does not start with zeors
In case it starts with 971, then 971 will be deleted
I am using this Regexp:
select regexp_replace ( trim (leading 0 from regexp_replace (' 00097100 32423 971 234 fs dsaf ', '[^[:digit:]]' ,'')), '^971{1}*', '' )from dual I already tested it, it looks fine, but since it is sensitive, would like to get confirmation from experts ..
Regards,
Fateh
chris227 wrote:
there is a zero in the first row left, may be not (soem nonsens)Oops, {0,1} shoul apply to 971 only:
:P1_MOBILE := regexp_replace(regexp_replace(:P1_MOBILE,'\D')),'^0*(971)?')
with t as (
select '0556675271' p1_mobile from dual union all
select '971556675271' from dual union all
select '+971556675271' from dual union all
select '00971556675271' from dual union all
select '971-55-6675271' from dual union all
select '971 55 6675271' from dual
select p1_mobile,
regexp_replace(regexp_replace(p1_mobile,'\D'),'^0*(971)?') new_p1_mobile
from t
P1_MOBILE NEW_P1_MOBILE
0556675271 556675271
971556675271 556675271
+971556675271 556675271
00971556675271 556675271
971-55-6675271 556675271
971 55 6675271 556675271
6 rows selected.
SQL> SY.
Edited by: Solomon Yakobson on Oct 23, 2012 9:11 AM
Similar Messages
-
Can you please confirm that my Destiny ($10 GC) is pending?
Hello, I ordered the limited edition of the game if that makes any difference. Can you please confirm if it's pending? Thank you very much. My best buy account email is the same as the email I used to make this account.
Hey spamurai,
Absolutely! Based on available information, it looks like the pre-order bonus points for your copy of Destiny posted earlier this week. It also appears that a certificate was issued with those points earlier today. When you can, I'd suggest double-checking your points and certificate history on BestBuy.com.
Thanks for reserving and purchasing your copy of Destiny with us.
Aaron|Social Media Specialist | Best Buy® Corporate
Private Message -
Can you please confirm that the MirrorLink app will work with the Z3 and my XAV-701BT ?
I have a Sony XAV701BT Head Unit and its currently compatible with the Z2's Mirror Link
I can not find any information regarding compatibility for the Z31
Close all iWork applications
2
Uninstall Keynote; this must be done with an application remover tool to delete the installation properly. Appcleaner is known to work correctly for this purpose, it is free and can be downloaded from here: Appcleaner Download
3
empty the trash
4
shutdown the Mac and restart. After the start up chime, hold down the shift key until the apple logo appears
let the Mac complete the start up procedure completely, it will take longer than usual as the hard drive is being repaired
5
Reinstall Keynote by logging into the Mac App Store using download / install -
Can somebody please confirm/deny this?
Can somebody please confirm/deny this?
FP 9 on Linux shows time one hour ahead than the local time.
Try following line with FP9 on Linux
trace("Current Time "+new Date());On Thu, 11 May 2006 05:35:14 -0400, Nikolay <[email protected]>
wrote:
> I think the files in
> http://download.eclipse.org/webtools/downloads/drops/R-1.0.2 -200604200208/
> are wrong! Can somebody please confirm/deny this?
>
Yes, they are "out of date", even though code is the same. The 1.0.2
release was refreshed, the code plugins are all exactly the same, but the
qualifier on some features (and, hence, code plugins) were
fixed up to allow update manager to work. The correct "drop site" for
1.0.2 is now
http://download.eclipse.org/webtools/downloads/drops/R-1.0.2 -200604280245/
I think, actually, the problem with the update site is that update manager
has a tendancy to give you only the "smallest" most recent update. If you
would have said "update again", even using the mirror, I believe it would
have given you another update, the 1.0.2.v200604280000 version.
If I can figure out a safe way to do it, some day I'll clean out those
"out dated" versions (200604200208) to help avoid the confusion. But, as a
general rule, when ever you use update, you might want to do it several
times, until it tells you "there are no updates". If you are in the mood
to experiment to confirm this, that would be great (although, obviously,
you'd have to "start over" with your prevous version, and I do not know
how easy that would be for you.)
Thanks, -
have donated $5 dollars to your fund and my credit card company has informed me that multiply payments being taken. Please confirm that this has stopped.
Please email me a response.
Wendymacrays.Hi Wendy,
Mozilla Support volunteer here.
I've marked your question for escalation and am trying to get a member of the fundraising team to get in touch with you. Hopefully you'll hear from them soon.
In the meantime, the best way to get help would be to email [email protected] for help. Mozilla staff monitor this address and you can expect a quick response (usually 48 hours, though might be delayed during the holidays).
Best,
Jayelbe -
I am trying to use imovie and i have never had this problem before. All of my videos are completly grey and when you try and play them all i get is a black screen but i still hear audio. Can you please help and tell me what i need to do. Thank you
Make sure all of the videos used in the project that is having that problem are from the same event. If they are from multiple events, move them all into one event.
-
Can you tell me what this code does?
Can you tell me what this code does?
import java.io.*;
class Assignment1
public static String[][] tdi = { {"Paris", "418", "Rome", "55"},
{"Liverpool", "121", "Copenhagen", "35"},
{"Liverpool", "418", "Paris", "50"},
{"Liverpool", "553", "Frankfurt", "55"},
{"Frankfurt", "553", "Budapest", "50"},
{"Amsterdam", "121", "Madrid", "65"},
{"Amsterdam", "418", "Paris", "35"},
{"Madrid", "121", "Stockholm", "90"},
{"Budapest", "553", "Warsaw", "30"},
{"Copenhagen", "121", "Amsterdam", "35"},
{"Rome", "418", "Amsterdam", "60"},
//--Start Method--
public static void main( String args[] ) throws IOException
System.out.println("Welcome to NoWings Airline.");
InputStreamReader input = new InputStreamReader(System.in);
BufferedReader keyboardInput = new BufferedReader(input);
System.out.println("Please enter the airport you wish to depart from:");
String[] info = TDIDLL.searchDest( keyboardInput.readLine() );
if (info == null)
System.out.println("Sorry, no plane to this destination");
else
System.out.println(info[0]+" departing at platform "+info[1]); }}
public static String[] searchDest( String dest )
String[] result = null;
for(int i = 0; i < tdi.length; i++)
if (tdi[1].equals(dest)) {
result = new String[2];
result[0] = tdi[i][0];
result[1] = tdi[i][2];
return result;
return result; }
// Info Method //
// Fly Method //
// Exit Method //
Thanks. Also, can you tell me where I have gone wrong in the code.
Much appreciated.Can you tell me what this code does?Why don't you run it and find out for yourself?
-
trying to download indesign for mac, photoshop and illustrator trial which i require immediately but your website is crashing/saying there is an error. Can you please advise when this will be rectified?
WHatever issues you have are specifuc to your local system, not Adobe. Since you have not provided any shred of useful,technical details such as system info nobody can tell you anything.
Mylenium -
Can you please help me. I purchased the new Apple I 4s phone from AT&T. I bought it out right. NO CONTRACT!! I paid almost $1000.00 for it. I then, had it enrolled it in my company's ATT service plan. They paid the bill for my service. Since, I have left the company. I have retained, and assumed financial responsibility for the phone, and the phone number with AT&T. The same day I assumed ifinancial responsibility, I had the phone number ported to a new service provider. ( Straight Talk ) After doing so, my phone worked fine. (as far as cellular service) NO DATA Service !!!! I have been on the phone with AT&T, Straight Talk, and Apple, FOR HOURS over TWO days!!! Trying to get this problem resolved. All I need to do, is change my APN settings (access point name ) settings. Its my phone!!! Why does any body have this APN menu locked from me??? I've been on the phone for two days between, AT&T, Straight Talk, and Apple products technical support teams. Everybody points the finger at the next guy!! What can I do to get the phone, that I paid for, work for more than just a phone, and a paper weigh?
PLEASE HELP ME!!!!!
Jason
Sent from my iPhone
<Email Edited by Host>Wow... you seriously over paid for an iPhone.
That probably explains why you have/had no clue you were purchasing a locked device and think it's an Apple problem to get it unlocked. -
Can you please tell me where i find the spellchecker
== Issue
==
I have another kind of problem with Firefox
== Description
==
can you please tell me where i find the spellchecker...............if not on here already how do i download it.
== Firefox version
==
3.6.6
== Operating system
==
Windows Vista
== User Agent
==
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 ( .NET CLR 3.5.30729)
== Plugins installed
==
*-Default Plug-in
*Shockwave Flash 10.1 r53
*Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
*Google UpdateDee,
See [[Using the spell checker]] and make sure you have spellchecking enabled and a dictionary is installed.
From the [[Options window - Advanced panel]] article:
* '''Check my spelling as I type''': When this preference is enabled, Firefox will check your spelling and offer possible corrections as you type in web forms. Note that you may need to download a dictionary; to do so, right-click on any text field, enable spellchecking if necessary, and then use the provided Languages menu to download a dictionary. -
My Ipod was disabled... Can you please suggest me how to enable the set?
My Ipod was disabled... Can you please suggest me how to enable the set?
Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
iOS: Wrong passcode results in red disabled screen
If recovery mode does not work try DFU mode.
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
For how to restore:
iTunes: Restoring iOS software
To restore from backup see:
iOS: How to back up
If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
You can redownload iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store -
Can you please put me in touch with the support for the trial copy of adobe acrobat XI pro which I had tried out on March 15 for 30 days. I have been trying to cancel since the cost is too much and Acrobat Reader is OK for me. I can't find uninstaller.
I have had to erase my disk since then with trouble with Apple Store not recognising my machine and the reload from Time Machine has given complications . Can you please cancel my trial and return my Trial money.If you paid for what you used then it was not a trial.
Look thru the following links and use the chat option if required for your situation:
Cancel your membership or subscription | Creative Cloud
https://helpx.adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html
https://forums.adobe.com/thread/1703848
Chat support - For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
Creative Cloud support (all Creative Cloud customer service issues)
http://helpx.adobe.com/x-productkb/global/service-ccm.html ( http://adobe.ly/19llvMN )
Phone support | Orders, returns exchanges
http://helpx.adobe.com/x-productkb/global/phone-support-orders.html -
Can you please explain how this query is fetching the rows?
here is a query to find the top 3 salaries. But the thing is that i am now able to understand how its working to get the correct data :How the data in the alias table P1 and P2 getting compared. Can you please explain in some steps.
SELECT MIN(P1.SAL) FROM PSAL P1, PSAL P2
WHERE P1.SAL >= P2.SAL
GROUP BY P2.SAL
HAVING COUNT (DISTINCT P1.SAL) <=3 ;
here is the data i used :
SQL> select * from psal;
NAME SAL
able 1000
baker 900
charles 900
delta 800
eddy 700
fred 700
george 700
george 700
Regards,
Renu... Please help me in understanding the query.
Your query looks like anything but a Top-N query.
If you run it in steps and analyze the output at the end of each step, then you should be able to understand what it does.
Given below is some brief information on the same:
test@ora>
test@ora> --
test@ora> -- Query 1 - using the non-equi (theta) join
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT p1.sal AS p1_sal, p1.NAME AS p1_name, p2.sal AS p2_sal,
12 p2.NAME AS p2_name
13 FROM psal p1, psal p2
14 WHERE p1.sal >= p2.sal;
P1_SAL P1_NAME P2_SAL P2_NAME
1000 able 1000 able
1000 able 900 baker
1000 able 900 charles
1000 able 800 delta
1000 able 700 eddy
1000 able 700 fred
1000 able 700 george
1000 able 700 george
900 baker 900 baker
900 baker 900 charles
900 baker 800 delta
900 baker 700 eddy
900 baker 700 fred
900 baker 700 george
900 baker 700 george
900 charles 900 baker
900 charles 900 charles
900 charles 800 delta
900 charles 700 eddy
900 charles 700 fred
900 charles 700 george
900 charles 700 george
800 delta 800 delta
800 delta 700 eddy
800 delta 700 fred
800 delta 700 george
800 delta 700 george
700 eddy 700 eddy
700 eddy 700 fred
700 eddy 700 george
700 eddy 700 george
700 fred 700 eddy
700 fred 700 fred
700 fred 700 george
700 fred 700 george
700 george 700 eddy
700 george 700 fred
700 george 700 george
700 george 700 george
700 george 700 eddy
700 george 700 fred
700 george 700 george
700 george 700 george
43 rows selected.
test@ora>
test@ora>This query joins PSAL with itself using a non equi-join. Take each row of PSAL p1 and see how it compares with PSAL p2. You'll see that:
- Row 1 with sal 1000 is >= to all sal values of p2, so it occurs 8 times
- Row 2 with sal 900 is >= to 9 sal values of p2, so it occurs 7 times
- Row 3: 7 times again... and so on.
- So, total no. of rows are: 8 + 7 + 7 + 5 + 4 + 4 + 4 + 4 = 43
test@ora>
test@ora> --
test@ora> -- Query 2 - add the GROUP BY
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT p2.sal AS p2_sal,
12 COUNT(*) as cnt,
13 COUNT(p1.sal) as cnt_p1_sal,
14 COUNT(DISTINCT p1.sal) as cnt_dist_p1_sal,
15 MIN(p1.sal) as min_p1_sal,
16 MAX(p1.sal) as max_p1_sal
17 FROM psal p1, psal p2
18 WHERE p1.sal >= p2.sal
19 GROUP BY p2.sal;
P2_SAL CNT CNT_P1_SAL CNT_DIST_P1_SAL MIN_P1_SAL MAX_P1_SAL
700 32 32 4 700 1000
800 4 4 3 800 1000
900 6 6 2 900 1000
1000 1 1 1 1000 1000
test@ora>
test@ora>Now, if you group by p2.sal in the output of query 1, and check the number of distinct p1.sal, min of p1.sal etc. you see that for p2.sal values - 800, 900 and 1000, there are 3 or less p1.sal values associated.
So, the last 3 rows are the ones you are interested in, essentially. As follows:
test@ora>
test@ora> --
test@ora> -- Query 3 - GROUP BY and HAVING
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT p2.sal AS p2_sal,
12 COUNT(*) as cnt,
13 COUNT(p1.sal) as cnt_p1_sal,
14 COUNT(DISTINCT p1.sal) as cnt_dist_p1_sal,
15 MIN(p1.sal) as min_p1_sal,
16 MAX(p1.sal) as max_p1_sal
17 FROM psal p1, psal p2
18 WHERE p1.sal >= p2.sal
19 GROUP BY p2.sal
20 HAVING COUNT(DISTINCT p1.sal) <= 3;
P2_SAL CNT CNT_P1_SAL CNT_DIST_P1_SAL MIN_P1_SAL MAX_P1_SAL
800 4 4 3 800 1000
900 6 6 2 900 1000
1000 1 1 1 1000 1000
test@ora>
test@ora>
test@ora>That's what you are doing in that query.
The thing is - in order to find out Top-N values, you simply need to scan that one table PSAL. So, joining it to itself is not necessary.
A much simpler query is as follows:
test@ora>
test@ora>
test@ora> --
test@ora> -- Top-3 salaries - distinct or not; using ROWNUM on ORDER BY
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT sal
12 FROM (
13 SELECT sal
14 FROM psal
15 ORDER BY sal DESC
16 )
17 WHERE rownum <= 3;
SAL
1000
900
900
test@ora>
test@ora>
test@ora>And for Top-3 distinct salaries:
test@ora>
test@ora> --
test@ora> -- Top-3 DISTINCT salaries; using ROWNUM on ORDER BY on DISTINCT
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT sal
12 FROM (
13 SELECT DISTINCT sal
14 FROM psal
15 ORDER BY sal DESC
16 )
17 WHERE rownum <= 3;
SAL
1000
900
800
test@ora>
test@ora>
test@ora>You may also want to check out the RANK and DENSE_RANK analytic functions.
RANK:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions123.htm#SQLRF00690
DENSE_RANK:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions043.htm#SQLRF00633
HTH
isotope -
Can someone please confirm that the FUP has now be...
Can anyone please confirm for definate, that the FUP (Fair Usage Policy) has now been removed from Infinity Option 2?
I keep getting told different things:-
I phoned BT and they said no it hadn't but it's due to be (sometime in April)
BT Care tweeted me and said:-
I'm unable to see anything about it on the BT Web Site and on this forum, some users are saying 'yes' it has been removed but others are saying 'no'
Can someone please give m a straight answer and confirm.
Thanks in advanceady199 wrote:
Can anyone please confirm for definate, that the FUP (Fair Usage Policy) has now been removed from Infinity Option 2?
I keep getting told different things:-
I phoned BT and they said no it hadn't but it's due to be (sometime in April)
BT Care tweeted me and said:-
I'm unable to see anything about it on the BT Web Site and on this forum, some users are saying 'yes' it has been removed but others are saying 'no'
Can someone please give m a straight answer and confirm.
Thanks in advance
Hi.
Can you tweet BTCare to ask when it was actually done ? It might also be worth asking if they inform the forum team, since they were the first to give details about the usage monitor problems in Jan/Feb.
http://www.andyweb.co.uk/shortcuts
http://www.andyweb.co.uk/pictures -
Can you please confirm....
i need confirmation that
this method of format use to work on my 6670
Turn off the mobile device. Then press and hold “3″, the “Green button” and “*” - Turn on and keep holding untill the phone fully restarts with the word "formatting"
does this still work for the nokia e65 ?
i have tried a few times but so far nothing is happening
thanks
nokeyaPatc
first off your reply was not helpful.
im not new to the noika phones nor am i new
to symbian's software but im new to the E65.
iantaylor27 & korngear
thanks for your replies
i did try those codes but on my phone they only
seems to do a reset.
after trying those codes the software icons in the instalation folder was gone, this gave me the impression that the phone had been reformatted but to my supprise when i tried to install the same softwares again then message came up on the phone saying that the software that you are trying to install is already on the phone, then it gave me the option to reinstall it again or not.
so this morning i went back to the phoneshop and swap the SD micro card again and this time all the software that i had install before now works even after switching the phone off and on again. so atleast 1 problem is solved
however i still have the format issue problem where my phone "pretend to format" but what it actually does is remove the icons from the installations folder but not the system files
DAM!!! this phone is only 2 weeks or so old
anyway i spoke to nokia support this morning and their solution is to send it in for an upgrade.
my firmware details are below
does any E65 users have a later firware and if so
where do i download it ?
(i guess its worth the try before sending the phone in)
1.0633.18.01 / 11-01-07 /RM-208
Thanks in advance
Nokeya
EDIT: removed profanityMessage Edited by damocles on 28-Mar-2007 12:18 PM
Maybe you are looking for
-
DB quries wrt migration from oim 9.1 to oim 11g (11.1.1.5)
Hi All, We have to do migration from oim9.1 to oim 11g (11.1.1.5) with new DB and AppServers. High level Steps are as follows 1. import the existing OIm9.1 DB to new DB. 2. Create Additional schemas (SOA,MDS) on new DB. 3. Install OIm 11g and SOA app
-
I'm writing an application in which performance will be quite important and was looking into my collection classes. I recently saw the move towards using Iterator instead of for loops, while loops to retrieve objects from a List. I wanted to test to
-
I have to make a form that can add or rest according to these numbers<br />example.<br /><br /> a ; b = new value<br />if a<b make a + b<br />if a> b make a - b<br /><br />or something anything to help me do this a dont want to use microsft ex
-
How do I: Activate dual DDR in BIOS?
This is a totally clueless question, i know, but it's important, i think. I have two sticks of 256MB RAM and i've placed them in the two slots which are adjacent to eachother on my K7N2G mobo. Is there anything i have to do to enable the dual DDR ch
-
We are implementing SAP for Croatia (We are bringing Croatia into existing HR system). When I tried to copy the wage types I realized that the environment is missing the model wage types for MOL 58. I raised a note to SAP with low priority but want t