REGEXP_LIKE, oh where art thou?

Hey guys, it's Xev.

I use regexp_like and I have a search string that will find nine consecutive numbers and nine digits with dashes in them.

Here is this string: "[0-9]{9}$|^[0-9]{3}-[0-9]{2}-[0-9]{4}$']"

Now, I need to add this string to tell it to find Digital Alpha also...

I've seen examples of regexp like this:

SELECT *.

OF the test

WHERE REGEXP_LIKE (testcol, "[[: alnum :]]');]]")

SELECT *.

OF the test

WHERE REGEXP_LIKE (testcol, "[[: alnum:]] {3}'");

SELECT *.

OF the test

WHERE REGEXP_LIKE (testcol, "[[: alnum:]] {5}");

These examples bring above things like 'letters' (a - z) which has no numbers in them, they do research off the coast.

My question is how can I add the [[: alnum:]] to the ' [0-9]{9}$|^[0-9]{3}-[0-9]{2}-[0-9]{4}$' and we find different combinations of numbers Alpha Digital 12,13,9,8 and 6.] ".

Thank you

You are probably after the [: alpha:] class, for example:

with sample_data as (select ' TXDL 16939441' testcol, ' alpha 4, space, digits "8 comments of any double union)

Select testcol 'WVE892102', ' alpha 3, 6 digits. "the comments of union double all the

Select "TID 445689166' testcol, 3 alpha, space, comments of the nine numbers of all the double union

Select testcol 'TX21334376', ' 2 alphabetic characters, numbers 8. "comments of the Union double all the

Select "TX 12786049' testcol, ' alpha 2, space, 8 digits." comments of the Union double all the

Select testcol 'S362420598030', ' 1 alpha, 12 figures. "the comments of union double all the

Select testcol 'G20063161647', ' 1 alpha, 11 figures. "the comments of union double all the

Select testcol 'D2208703', ' 1 alpha, digit 7. "comments of union double all the

Select testcol 'E102795', ' alpha, 6-digit 1. "the comments of union double all the

Select "K01-44-4855' testcol, ' 1 alpha, 2-digit, dash, 2 digits, hyphen, 4 digits." any double union comments

Select '5563107788760' testcol, comments double union all ' 13 digit consecutive. »

Select testcol '466767189', ' 9 figures. "comments on all double union

Select testcol '23386895', ' 8 figures. "comments on all double union

Select ' 77-777-7777 testcol, ' 3 digits, dash, 2 digits, hyphen, 4 digits. "comments of the Union double all the

Select testcol '16618667TX', ' 8 digit, alpha 2. "comments of the Union double all the

Select '14067641 TX' testcol, ' 8 digit, space, alpha 2. "comments of the Union double all the

Select '003671363 THE' testcol, ' 9 numbers, space, alpha 2. "comments of the Union double all the

' Select ' TXID 11946262 ' testcol, ' 8 digit, space, alpha 4. "comments of the Union double all the

Select '1111111111' testcol, ' shouldn't "t match - 10 consecutive double-digit)

Select testcol,

Comments,

-case when regexp_like (testcol,'^ [[: alpha:]] {4} \s [0-9] {8} $' |)

'|^[0-9]{9}$'||

' | ^ [(0-9]{3}-[0-9]{2}-[0-9]{4}$')]

then 'Y' else ' n end check_col

of sample_data;

(I left the rest as an exercise for the OP, also I took the liberty of the difference between the two sets (effectively) 8 digits and 2 letters, by doing a have a space and the other not.) It was not difficult to come up with the rest of the conditions...)

Tags: Database

Similar Questions

  • Volume control - where art if?

    Hello gang -.

    I use AA 3.0.  My volume control icon has arbitrarily decided to leave the city.  Or at least my editing window.  I scoured deep software trying to track him down.  BU unfortunately, in vain.  Can some generous soul time please help me locate this guy?

    I normally appears at the top of the audio, I want to emphasize so that I could set this segment of audio therefore +/-.  A feature VERY handy I want to continue to use.  Please help :-)

    See you soon!

    View on Clip UI or keyboard shortcut "6" from the menu on the top row of the keyboard.

  • Problem of formatting dialog

    Fell on a dialog box layout of question - to know he'll let a character name and the paranthetical at the bottom of a page, then put the dialog box (with the name of the character again) on the next page when it should rather it is shoot automatically the next page. Makes no sense.

    For example, if you write this at the bottom of the page:

              Juliet

    (sotto)

    Romeo, Romeo, where art thou, Romeo.

    That would leave on a single page:

                   Juliet

         (sotto)

                   (MORE)

    And put this on the next page:

                   Juliet (CONT'D)

    Romeo, Romeo, where art thou, Romeo.

    Need to fix this. Thank you.

    Hello

    Thank you for reporting this issue.

    It is a problem known to us, we already have that in our to-do list.

    We have one couple of other priority things lined up for the moment.

    We'll let you know soon fix us this problem.

    Thanks again,

    -Eric

    Adobe Story team

  • Work does not appear

    I got a copy of a syymbol model and uses the call below to create an instance centered in sight.  Call incoming return successfully, but the symbol is not displayed in the window.  I have the flag "paintOrder" kPlaceDefault value.  Any ideas?

    error = sAISymbol-> NewInstanceCenteredInView (symbolPattern, paintOrder, prep, & newArt);

    error = sAISymbol-> NewInstanceCenteredInView (symbolPattern, paintOrder, prep, & newArt);

    I think I see the problem. You asked for the art of the concatenation of symbol definition (GetSymbolPatternArt) and then you tried to create a new copy of art within this definition, even if it wasn't a recursive definition of symbol, you would actually be stick in limbo, somewhere, where art of definition of this symbol is retained. In any case, I think the docs of GetSymbolPatternArt () to say you cannot actually change it is why it is not probably complain.

    If you just remove this line and gave an art prep NULL, you would probably get what you want. If you want it on a specific layer, however, you do not want to provide the first art on this layer (GetFirstArtOfLayer()) - the layer group container - and a sense of direction (as kPlaceInsideOnTop, but kPlaceDefault would probably be nice).

  • After downloading an album and burn it to a CD, I click on "cover art" and receive nothing. Where is he? It is with a Windows PC.

    After downloading an album and burn it to a CD, I click on "cover art" and receive nothing. Where is he? It is with a Windows PC.

    Lenore,

    iTunes does not work to burn Add.  In fact, standard audio CD can not incorporate art;  It can be external, as printed on the drive or on an insert.  What exactly are you trying to do?

  • In Pages 5.6.1 where to store clip art?

    In Pages 5.6.1 where to store clip art?

    Create a separate document to Pages in which you copy / paste your works of art. When you need some work in the future, you open this separate document and copy/paste into your new document.

    You can also select your graphic design in the page document, copy and then launch preview and choose cmd + N to open your image in the Clipboard. Now you can export your regular graphic design in the form of graphic files (jpg, png, pdf, tiff, etc.) in a folder named arbitrarily clip art. For new documents, you can drag and drop the images you need for your clip art folder.

    A cat, two skinnings.

  • Where Windows Media Player store album art?

    I have many, many of the audio CD WMP shows the album art to album and several other points of view.  I have another application, in that I try to get the work but the application will not find work rip CD or by using the function «find album art»  I have a vague feeling that the other application does not search the work to what whether the 'head office' doesn't sell. ? !  In any case, if I could find where album art are kept in WMP, I could try to transfer it to the other application.  I looked on some of the CD and cannot find any file or subdirectory.  Similarly, I can't find any subdirectory under WMP where work could be stored.

    Any help would be appreciated,

    Turner

    Copy the files in the top level of this folder in the same folder on new pc...

    C:\Documents and Settings\yourname\Local Settings\Application Data\Microsoft\Media Player

    You can probably just copy the entire folder of Media Player above.

    With the help of XP Professional...

  • I art images to put on a scan disk - don't know where to begin to transfer.

    I want to organize my art on a scan disk images.  I don't know how to start.  They are in many files and hope to consolidate them.

    Create a new folder,

    Select the files in this folder,

    Right click on one of them and click on cut.

    Open the new folder, click with the right button on a black spot and click on paste.

    Repeat to others,

    To transfer new files, you can simply drag and drop the features of registration records,

    Or right click and click on copy.

    Open or right click on the device and click on paste.

    Drag and drop the video,
    http://www.YouTube.com/watch?v=6n3YKsgOdsk

  • Lack of Cover Art after update 12.5.1.21

    I just updated to 12.5.1.21.  I usually replace the cover art of audio book with a jpg file which has more resolution.  All those images replaced disappeared. (windows to itunes version - win 10)

    (1) right-click on a book... Choose "Get Info"... Click the 'Work' [Note: NO scroll under work bar]

    (2) the OLD work appears... Click on "add a picture"... Choose new work (jpg) and click on 'open '.

    (3) new artwork appears AND the cursor appears under the window of the work

    (4) by using the slider I can see BOTH new & old work. Note the following points:

    (a) you can 'Add' the work the same (or other) several times and each additional image will appear

    (b) sometimes you can right click on an image and the choice of 'delete' or 'make' work include

    (c) select "Remove action" makes the image disappear in the window of the work - the slider bar shows that it

    (b) BUT once clicking on OK... The OLD image is back as cover art AND if you right-click... "" Get Info"".. "Œuvre art" "

    the new added images are gone!

    Recap

    All added images of audio books before 12.5.1.21 left (that is to say not to read the information... Work - NO cursor). Only old illustrations.

    If you add a new image to an audio book (Get Info, work... Add an illustration), it disappears when you click OK.

    Then. Now if you upgrade you two get off book covers, that you added AND you can't add to their back (think 500 books and... custom covers)

    I must also add that this is not the 1st time an update broke something with audio books. Apple fixes it usually within 3 to 6 months.

    Thank you

    John

    Are these sound files (.aa)?  If so, I can confirm the problem in 12.5.1.  I think that Apple have disabled the previous behavior where (unlike all other formats) illustrations for the .aa files changes created a reference to an image file that is separate, rather than changing the image embedded in the audio file.

  • Problem drive external HARD - where to get warranty service

    Dear Sir.

    I bought an external HARD Thosbia [store ART 3 E] disc from Dubai, Carrefour. Now I'm in India. This device does not not properley. Where to get service for this problem.

    Please help... urgent

    concerning
    Antony Thomas

    Hello

    I think that you will need to contact the ASP in Dubai.
    You will find here all the FSA all over the world:
    http://EU.computers.Toshiba-Europe.com/innovation/generic/ASP_SUPPORT/

    But I recommend to check your user manual and booklet warranty issues are mentioned there as well.

  • Toshiba USB external disk HARD STOR E art 3.5 "

    Have the HARD drive connected to the laptop with windows 7, but the HARD disk is not recognized. Try to connect to other USB 2 ports, but the result is the same. use a USB key to test the 3 USB ports, they are ok! In the maneger disk does not show the HARD drive. Connected to other laptop with windows 7 has been recognize, did a format and for file sistem, I use the NTFS option.

    Exactly the same problem, for a first purchase of Toshiba products, I was nervous, purchase of a Toshiba drive, I now understand my nervousness...

    Windows 7 + * 64 * BIT +.<>
    1 TB Store Art external USB

    Player works 100% in Vista, Linux etc...

    Windows 7 + * 64 * + BIT doesn't work, detects no road at all... and you can not change the drive letter if windows does not detect the disc, Device Manager does not display no device listed in all.

    My drive is less than 2 months, I am curious why I'm not able to run this new drive in windows 7 64 bit Toshiba recalling at the...

    "Windows®. Life without walls. Toshiba recommends Windows 7. »

    All my other external drives work 100% on Windows 7 64 bit

    Would really answers from someone at Toshiba with a fix, or where I can send this drive back to get my refund!

  • Pavilion dv7: lost all my art background Win 7 win 10 update

    Hi all

    I've updated recently for Windows 10.  Something that I really don't think at the time was that this could remove all the art of the beautiful wallpaper which was commissioned by HP in 2012 of artists talented for Windows 7.  In particular, the background of 'Water' from Alexis Marcou:

    I liked this background and have traveled the internet trying to find him.  Anyone know if I could get it again from HP, or am I out of luck?  Or, is it really still hidden something hand in my OS 10 win and if yes, where can I find it?  Any help is very appreciated.

    Thank you

    Christina

    Paul-

    Success!  Since I knew that the path of file base thanks to your instructions, I followed the trail in my Windows 10 and they are found here:

    This PC > Windows > Web > Wallpaper > backgrounds for Hewlett-Packard

    I can say honestly I never thought looking for Windows > Web to find wallpapers, and they were not coming in all default options Win 10 under desk > customize.  Thank you very much for your help.

    -Christina

  • Anyone know where I can find free clipart online?

    Anyone know where I can find pictures clipart online that you don't have to buy a subscription? Like cant I just find a free clipart image? Or can I just find a site where I can buy a piece of clip art to a moment that I need them?

    Original title: dsmyth57

    Moved from the community involvement Center

    I fear that we live is no longer altruistic worldwide must even pay to have access to images which can be in the public domain. Everyone is out for their pound of flesh or the Treasury somehow.

    Bing to be the last bastion of finding free Clip art.

    I remember in a past where people freely shared images in the public domain. Now, everyone is out for a quick buck. It is more a peace and harmony in the world, everyone is out for themselves. Things like altruism, friendship are just relics of the past.

  • where are the visualizations for windows media player

    WHAT HAPPENS ONSCREEN VISUALITION FOR MEDIA PLAYER?

    before you could play a song and there was a screen that had Visual afffects who played with music not it not there what happen to it for my beloved part can I get it back

    Sincerely David Swoveland

    Press CTRL + 3 to access the playing mode and then right-click in the window (where the art of the album is probably showing), choose visualizations and select what you want.

  • I installed a sniper art called game of victory, but it has now stopped working he won't play no more

    I had a game on my laptop called sniper art of victory but it has now stopped working and I can't get it working again. the loading of the game at the level that I saved my game to but then when I go to start the game where I recorded home everything stops and I get a message saying that the game does not run correctly, and windows has stopped, so what could be wrong with the game

    Hey paul bell bond,.

    There could be several possible reasons for this.

    Try to get the game settings to the 'Factory Defaults'. For instructions on how to do it please contact the vendor of the game. Delete all of your temporary files and see how it goes. To do this, run Disk Cleanup.

    See the article below:

    Delete files using disk cleanup
    http://Windows.Microsoft.com/en-us/Windows7/delete-files-using-disk-cleanup

    Another application could also be in conflict with the game. Perform a clean boot procedure to verify if this is the case.

    Please follow the steps listed in section of the knowledge base on how to achieve this.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135

    As a last resort, you can uninstall and reinstall the game. It should work.

    Kind regards

    Shinmila H - Microsoft Support

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • Pavilion Dv6-1446ee: RAM UPGRADE

    HI experts, My laptopn Pavilion dv6 1446ee has two slots of memory, each use "1 GB PC2-6400, 800 MHz, DDR2 RAM" Now, if I want to upgrade the memory to 4 GB, then should I modernize the two slots? Or upgrade to the 4 GB single slot will work? concern

  • computer does not start upp

    Hello I start my PC. it freezes. I have to restart my pc. and have to alow the machine to scan. message - computer @your impossible to srtart @, then his scans himself. Finally, I am able to log in. What is the cause. Could NIS be causing it.

  • Pre does NOT START

    It's just stuck on the Palm screen. I tried all reboot attempts (orange + sym + r and hold power + ringer switch) and it's not going past the palm screen. Tried to remove the batt and back on but nogo... Help

  • Shrink system partition and the HP recovery partition.

    HP Pavilion dv6560el notebook PC Windows Vista Home Premium (original OS pre-installed) I want to shrink the system (C partition to make room for a new partition (Z.)) The new partition (Z will be used to store data.) The Windows Vista disk managemen

  • Office of Lightroom CC for the synchronization of the laptop?

    I have lightroom CC on my desktop and my laptop. I cannot attempt to synchronize photos from my desktop to my laptop but also to synchronize the predefined settings that are on my desktop?