Special characters other than the number and the hyphen

Hi all

I have a table that has a column named ID. This column contains the employee id, but during the loading of the files in the Tables, some records are contains various special characters. The sould IF contains number and hyphen (-) only. All other characters are special characters.

I need to write a procedure/function, where I spend that id and check in the table if this ID contains special characters other than the number and the dash and remove it and then check the length of it (say 10).

It should then resubmit this comment to refer to another ID such as "invalid ID".

Can someone help me how to write the procedure/function with this feature?
with t1 as(
select '12345-2345 ' val from dual
union
select '34556- 5627'  from dual
union
select ' 56556-5236'  from dual
union
select '11111-1111' from dual
) select regexp_substr(val,'^[0-9]+-[0-9]+$') FROM t1
where regexp_substr(val,'^[0-9]+-[0-9]+$') is not null

Tags: Database

Similar Questions

  • Special characters used for the root password

    Don't vSphere 4.0 support characters other than the numbers/letters for the root password, such as # or $?

    This should not be a problem.  In addition, see below

    http://KB.VMware.com/kb/1012033

    .. and is this question which relates to PowerCLI, otherwise I can move the thread

  • How to better convert 01:56 and not lose quality other than the 4 K to 2 k

    If I take a 4 K produce and convert/low res to 2 k by 2 k, importing in a time line am I lose quality other than the 2 k low res? Is it bad for the film? Does make a difference if the position would give me a 2 k vs file to me? It's a feature and I need lower res that it creates a DCP. so I'm concerned about quality. And is it all still do not lose quality on import and export. It seems that I lose 15GB.

    YYou are reducing the resolution, but you're not really lower the quality. There should be no difference between you do it or someone else do it. The file will be much lower in 2K 4 K. It is to be expected.

  • Firefox is redirect to sites other than the one clicked on.

    When you click on search sites by using the bar (address bar not) search, you are redirected to one site other than the one you clicked on. It happens not on all sites found, but on a large number of them. However, in all cases where sometimes the site redirected to is [adlinksearch.com]. I use PC Tools Spyware Doctor and it has found no problems with Malware. I can go on the site if I put the address in the address bar. I use igoogle search bar. Please help with this issue, because it is very annoying.

    This has happened

    Each time Firefox opened

    == Unknown as to exactly when he started

    Firefox closes alltogether when you go to youtube videos, not youtube itself. Redirects to other sites. ran malaware and spybot. Any suggestions?

  • I just bought a 6 d. is it possible to use the grid in other than the auto mode?

    I just buy a 6 d.  Is it possible to use the grid in other than the auto mode?  Also, is there a way to use the self-timer in other than the auto mode?

    Thank you very much. I look forward to your comments.

    I have to assume that your camera came with a manual you need to rely on. In my manual for my 7 d Mark 2 the index near the end of the manual lists the applicapable pages for whatever this is relating to the use or other people. Grid is under G, Self Timer is under S and called "self-timer."

    If you use a computer based pdf to see the info it will probably be several pages listed, but you can click on a page number to get to it rather than scroll to it.

  • Data other than the English language

    Hello

    I use Oracle 10 g. I have a table in which there are two columns, one column contains data that can be in English. Whenever I'm populating data, I get junk characters in this field. Now, if I want to know how many records I have that are not in English, completing only the records?


    Concerning

    If you just want to find all characters that are other than A - Z and you're on 10g, you can use regular expressions.

    SELECT text_column FROM my_table WHERE NOT REGEXP_LIKE ( text_column, '^[A-Z]+$');
    

    To include lowercase letters from a to z...

    SELECT text_column FROM my_table WHERE NOT REGEXP_LIKE ( text_column, '^[A-Za-z]+$');
    
  • What are some editing apps good free photo for Mac, other than the Photos of Apple?

    Hi everyone, I'm looking to see what free apps, you guys use for editing photos?  I have a photography class to come and play with options other than the use of pictures of the Apple app.  Nothing against the app, I just learn more.  Thank you.

    Strange question to the users of the forum pictures - of course, the answer is Photos for Mac

    Photos is optional and if you don't like it, then, Google is your friend

    LN

  • The pencil of Apple requires a port light to recharge.  Does anyone know a USB male to female adapter port lighteners that would load the pencil on one device other than the iPad?

    The pencil of Apple requires a port light to recharge.  Does anyone know a USB male to female adapter port lighteners that would load the pencil on one device other than the iPad?

    Apple pencil comes with its own map of woman to woman, so you can use a standard lightning cable USb and charger to charge

    Not sure there is no 3rd party yet.

  • can I install programs on one physical drive other than the drive that contains the operating system Vista

    My hard drive crashed and I didn't do a reinstall full Vista no problem here other than do not pay attention, I installed the operating system on one 80 GB disk other than the new 320 gig which was. After the new facility and all new updates, I have 25 GB of free space. I would like to know if I can install new programs on my drive d: and no filling of drive c: for the ability

    Hello

    Thanks for posting this question in the Microsoft Community Forums.

    I see you want to know if you can install programs on a drive with no operating system.

    I wish to inform you that this is possible with only specific programs, which give the user an option to choose where the program is installed.

    When a program is installed, it runs in program files, which lies in the operating system drive and can not be moved elsewhere.

    Another reference:

    Microsoft does not support changing the location of the program files

    http://support.Microsoft.com/kb/933700

    I hope that you found this information useful.

    Please get back to us if you have any other questions about windows.

  • When I right click Start button select Explorer, I can decide what folder is open other than the start menu?

    When I right click Start button select Explorer, I can decide what folder is open other than the start menu and dozens of file extensions?

    Can we just my computer with the list of drives?

    thanx

    Hello

    I suggest you to follow these steps and check if that helps:

    a. right click on the Windows Explorer icon

    b. in the menu that appears, click Properties.

    c. in the target box, add the command line switch ' / root ' to the "% SystemRoot%\Explorer.exe" command, using the startup location that you want.

    d. for example, if you want Explorer of Windows to start at the root of drive C, edit the command as follows:
    % SystemRoot%\explorer.exe/root, C:\

    It will be useful.

  • How can I set the format of Windows Media Center at 16:10 in other than the full screen?

    How can I set the format of Windows Media Center in Vista at 16:10 in other than the full screen? I use a screen as secondary display 1680x1050px.

    Hello, YPOC

    It is not possible to change the proportions for Media Center in windowed mode.

    The aspect ratio has been changed in Windows 7 and uses a format screen mode to windowed.

  • I can't get my computer in safe mode. The custom of menu f8 "Let me pick something other than the normal mode. My keyboard works perfectly fine (obviously since I could press f8), but it won't let me choose Safe mode.

    I can't get my computer in safe mode.  The custom of menu f8 "Let me pick something other than the normal mode.  My keyboard works perfectly fine (obviously since I could press f8), but it won't let me choose Safe mode.  I have a Trojan horse on my computer so I'll try to get it in safe mode.

    Hello

    Start - type in the search-> MSCONFIG box find top - make a right click on - RUN AS ADMIN

    Control - Section Boot - Safe Boot Startup tab and check the boxes below if necessary - APPLY / OK - REBOOT.

    ===========================================================

    It can be made repeatedly in Mode safe - F8 tap that you start, however you must also run them
    the Windows when you can.

    Download 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/

    Run 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=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also 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 other security programs. It comes
    a scan only, 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.asp

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    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

    --------------------------------------------------------

    Also do to the General corruption of cleaning and repair/replace damaged/missing system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • Will there be repercussions to Program Files on one partition other than the operating system of the installation?

    Will there be repercussions to Program Files on one partition other than the operating system of the installation?  Most if not all the software packages allow to customize the installation.  I had an experience with OFFICE 2013 and this allowed me to install on a separate partition.  After installation, I checked the menu START was 2013 OFFICE & I was able to launch PwrPt without complications.

    My motivation for doing this is that I have several versions of LabView which occupies the huge disk space.  So if I can separate the backup image of my OS program files is greatly reduced in size.  This allows me to record several images of my OS by dates without needlessly chewing my external hard drive.

    Anyone know this & if yes are there complications or questions?

    Appreciate any feedback

    I think I've found a more informative explanation via:

    http://www.SevenForums.com/general-discussion/221347-install-personal-programs-partition-separate-OS-partition.html

  • Route VPN site to site on one path other than the default gateway

    I want to route VPN site-to-site on one path other than the default gateway

    ASA 5510

    OS 8.0 8.3 soon

    1 (surf) adsl line interface default gateway

    line 1 interface SDSL (10 VPN site-to-site)

    1 LAN interface

    What's possible?

    Thank you

    Sorry for my English

    Here is the assumption that I will do:

    -Your IP SHDL is 200.1.1.1, and the next hop is 200.1.1.2

    -Your LAN-to-LAN ends on this interface (interface card crypto SHDL)

    -VPN peer 1 - 150.1.1.1 and LAN is 192.168.1.0/24

    -VPN peer 2 - 175.1.1.1 and LAN is 192.168.5.0/24

    This is the routing based on the assumption above:

    Route SHDL 150.1.1.1 255.255.255.255 200.1.1.2

    Route SHDL 175.1.1.1 255.255.255.255 200.1.1.2

    Route SHDL 192.168.1.0 255.255.255.0 200.1.1.2

    Route SHDL 192.168.5.0 255.255.255.0 200.1.1.2

    Hope that helps.

  • My folders appear empty when I discovered by something other than the folder view.

    My folders appear empty when I discovered by something other than the folder view.  But in the folder, I can see and use files.  The search engine does not work.

    I use Windows 7 Home

    See if that helps,

    http://Windows.Microsoft.com/en-us/Windows7/advanced-tips-for-searching-in-Windows

Maybe you are looking for

  • disc eject does not correctly persist

    I get several error messages that my external hard drive was not ejected correctly. I ejected it, turned off, unplugged and then reverse the process. Whenever my screen locks when I open it there are several messages not eject disks does not correctl

  • Satellite L650 - Fan not kick (work) after the fashion 'sleep'

    Hi all The fan does not work when you restart the standby mode, but only after complete closure.What causes this and how can I solve this problem?Toshiba L650 - 170 system unit Thank you!Luke

  • Is it possible to free up space on my IPhone by moving the files to JUST my icloud?

    For example, with a 16 GB IPhone 6s and I really only get about 11 GB. I had the phone for less than a month and am already low on storage. I bought 50 GB of storage icloud but do not see the point so when I delete something from my phone will remove

  • Can not post a question

    I'm trying to post a question on the podcasts and RSS feeds, and it won't let me post. He repeated to me that your question could not be validated due to an error. You have been disconnected. If the problem persists, contact your system administrator

  • Impossible for users of vpn SSL ping

    I have install several ASA with Anyconnect SSL VPN function, but I have never been able to ping to an IP address that has been assigned to the remote user. I'd be able to ping the remote user? Do I need to configure anything in any political group or