Remove unnecessary characters, space and channel numbers

Oracle 11.2.0.1

Windows

I have data from the table like this:

David Parker

Robert Josh

Hick 1/4

John ' Fowler

Bill.Gates

Herman Patrick «»

Andrew % Clark

I want to delete all the numbers, special characters, more than one space between the words and make the correct name.  How can I remove extra characters from string.

In fact, we get data that has sometimes special characters, including numbers and more spaces in name and it still creates a bad output query.

Thank you.

Or...

SQL > t

2 ALSO (SELECT "David Parker' DOUBLE str")

3 UNION ALL

4. SELECT 'Robert Josh' DOUBLE

5. ANY TRADE UNION

6. SELECT ' Hick' 1/4 OF the DOUBLE

7 UNION ALL

8. SELECT q ' [John 'Fowler'] ' FROM DUAL

9 UNION ALL

10. SELECT 'Bill.Gates' FROM DUAL

11 UNION ALL

12. SELECT q'[Herman 'Patrick']' FROM DUAL

13 UNION ALL

14 SELECT q'[Andrew % Clark]' FROM DUAL)

15 SELECT regexp_replace (str, "[^ A-Za-z] + ',' '") final_str

16 FROM t

17.

FINAL_STR

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

David Parker

Robert Josh

Hick

John Fowler

Bill Gates

Herman Patrick

Andrew Clark

7 selected lines.

SQL >

Tags: Database

Similar Questions

  • Remove the empty spaces and LF between lines in xml

    Is there a way to remove the empty spaces and LF between XML nodes?

    Let's say I

    CLOB l_clob;

    ..

    l_clob: ='

    < root >

    < name > ioerio < / name >

    < 10 > < / age >

    < / root >

    ';

    I need to get a XML in a single line without spaces and withoud LF...

    Example:

    SQL > ed
    A written file afiedt.buf

    1 declare
    2 l_clob clob.
    3. start
    4 l_clob: ='
    5
    6 ioerio
    7    10
    8

    9  ';
    10 l_clob:=replace(l_clob,chr(10)); -Remove line breaks
    11 l_clob: = regexp_replace (l_clob, ' > +)<','><>
    12 dbms_output.put_line (l_clob);
    13 * end;
    SQL > /.
    ioerio 10

    Must say, this is a strange requirement.  Most people ask how to do the reverse.

  • Remove the spaces and special characters to a form field

    Hello

    I am tragically new to all this, but I'm trying to create a form in Adobe Acrobat 9.  I am trying to use a custom script Format to make entries in a form field and automatically remove the spaces and special characters (hyphens specifically).  For example, if a user 'RAN - 99 06' entries I want to change it to "RAN9906."  I found this script that does not allow users to input special characters

    If (! event.willCommit) {}


    Event.change = event.change.replace (/ [------$# ~ %------*------*------^-------------(\)------+=------[\]------{\}; \ "\ <>\ \?"]) \ | \\\ !] /g, "");

    }

    And it's OK, but I can't understand how to prohibit the spaces.  In addition, the perference would be a script to allow users to enter data as they wish, but to clean after leaving the text field.

    Thanks in advance!

    Yes, there are a few changes during the passage of the code of the event in the sequence of keys to the Validate event.

    First of all, you need not try the willCommit. In fact, when the sequence of events of field reached the Validate event, the field is already committed. The Validate event does not therefore the property of willCommit.

    Secondly, in the Validate event, you work on the event.value and either event.change. Thus, you will replace accordingly.

    And who should actually do.

    I hope this can help.

    Max Wyss.

  • Remove the spaces and characters not a calculated field standard

    Hello

    I am fairy new forms Adobe script, but I managed to do that day. I am currently working on a form that we send to the suppliers to implement in our systems.

    One of the fields is called "Name of organization", which has a custom format script that modifies the text entered in uppercase in the field output:

    Event.Value = event.value.toUpperCase ();

    I have a hidden field "Own name branch" which is a code of calculation organistion which allows us to identify the organization within our systems (which can use letters). I need 'Own organization name' to be a calculation of "Name of organization" with all the spaces and non-standard characters deleted (", ([]) @$' &... etc").

    Could someone help me with this?

    Thanks in advance

    Chris

    This should do the trick:

    Event.Value = this.getField ("Organization Name").valueAsString.replace(/[\W,_]/g,"" ");

  • Removes all characters except numbers

    Hi all

    I want to reformat to following phone numbers. As you can see it in what follows, I want to delete all characters except numbers and it does not start wirh 0 0 at the beginning of the f-number. And the length is 11. What do you recommend?

    (543) 456-35-50 = > 05434563550

    (555) 555-55-55 = > 05555555555

    (210) 111-11 / 11 = > 02101111111

    Thank you

    Hello

    3018678 wrote:

    Hi all

    I want to reformat to following phone numbers. As you can see it in what follows, I want to delete all characters except numbers and it does not start wirh 0 0 at the beginning of the f-number. And the length is 11. What do you recommend?

    (543) 456-35-50-online 05434563550

    (555) 555-55-55-online 05555555555

    111-11 / 11 (210)-online 02101111111

    Thank you

    To remove all characters except the 10 digits, you can use REGEXP_REPLACE

    REGEXP_REPLACE (str, '\D')

    To put a "0" at the beginning of the string (if it isn't already begin with a '0'), you can use REGEXP_REPLACE even once:

    REGEXP_REPLACE (REGEXP_REPLACE (str, '\D')

    , '^([^0])'

    , "0\1".

    )

    I don't think that there is a way to do both things wih a single integrated function call.

    There is a requirement on the length being 11?  What happens if that comes into conflict with one of the other requirements?  For example, if the string is already long of 11 characters, but does not begin with a '0', do you want to add a "0", which makes 12 characters?  What happens if the length, after removing the numbers no, is very small, say 1?  (You can use LPAD adds however many ' 0 s you need.)  If the length (after removing the numbers) is 12 or more?  What happens if the string does not contain any what numbers at all?

    If these things are questions, then post CREATE TABLE and INSERT statements for some examples of data, accurate results, you want that data, and explanations.

    Check out the Forum FAQ: Re: 2. How can I ask a question on the forums?

  • remove a space and a special character


    Hi all

    I'm using Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    I have a text (ABC - GB * C V - G /.) (F) and I want to remove all special characters and space and display as (ABCGBCVGF). Appreciate all your thoughts.

    Thank you

    SQL> select regexp_replace('ABC-GB*C V-G/.F', '[^[:alpha:]]') val
      2    from dual;
    
    VAL
    ---------
    ABCGBCVGF
    
  • regualr expression: space and alphanumeric characters are allowed only.

    What is the best way to determine the needs of the company:
    1 string entry can contain only: characters, numbers, space.
    For example "an A1" is correct because there is only space and a number and characters, but ' aA. 1' is not correct because it contains the point which is not allowed.

    My original request:
    with T as
    (select 'a A1' VAL from dual union 
    select 'a.A1' VAL from dual union
    select 'aA1' VAL from dual  union
    select 'aA .1' VAL from dual)
    select VAL, REGEXP_INSTR(VAL, '([^[:alnum:]])') NotAlphanum, REGEXP_INSTR(VAL, '([^ ])') notspace,
    REGEXP_INSTR(VAL, '([^[:alnum:] ])') NotAlphanumORSpace
    from T
    ;
    (I'll do it later "If count (1) > 0 ' or ' If NOT count (1) > 0" of the application of the rule is not important if we're going to do the implementation as the rule of bargaining or negotiating not. ")
    SQL> with T as
      2  (select 'a A1' VAL from dual union
      3  select 'a.A1' VAL from dual union
      4  select 'aA1' VAL from dual  union
      5  select 'aA .1' VAL from dual)
      6  select VAL, DECODE(REGEXP_instr(VAL, '([^[:alnum:][:space:]])'),0,
      7  'Only Alfa Numerci or Space','Other than that') from T;
    
    VAL   DECODE(REGEXP_INSTR(VAL,'(
    ----- --------------------------
    a A1  Only Alfa Numerci or Space
    a.A1  Other than that
    aA .1 Other than that
    aA1   Only Alfa Numerci or Space
    
  • The channel numbers and the USB-6259 BNC

    The front panel USB-6259 BNC labels BNC connectors as channels 0-7 and 16-23. Most odd... I have a software written in C++ using NOR-DAQmx that my client will try to use with this unit. When using the channel superior numbers he (not unusually, really) Gets the error-200077 saying that they can only be used in unbalanced mode. But it is not natural for him to use the channel numbers printed on the front of the unit.

    Can someone tell me how the front panel of this device is the channel numbers, you must specify in the code?

    This requires the switch (source of the source/grounded) floating FS/GS that appears under each BNC connector?

    Here's my proposal: differential mode: in the software, channels 0-7 are front channels 0-7. Software 8-15 channels are front 16-23.

    Asymmetric mode: software channels 0-7 are cover 0-7 and 16-23 software channels front 16-23. And 8-15 and 24-31 channels are absent...

    It takes just the opposote of what you have. In differential mode, aix is paired with aix + 8. so, ai31, ai9, AL10, ai11, ai12, ai13, ai14, ai15, ai24, ai25, ai26, 27, ai28, ai29.ai30 and ai8 channels are not available for selection in differential mode. Front panel for ai15-23 labels should be correct and matches what you select in the software.

  • Running out of disk space and the need to remove the old clichés

    I recently joined a company owning an ESXi 4.1.0 (build 260247) server with 4 500GB data warehouses.  One of our servers main database (Ubuntu/Postgres), which uses only one of the data warehouses (4 datastore) has 21GB 465 GB free.  It is currently configured to store all settings, storage and snapshots on this unique data store.  The hard disk is configured as thin.

    The virtual machine has crashed a few days ago, when it ran out of disk space.  We removed a small second partition (which was in the same data store) and cleared space, but we receive extremely weak with only 5% of the data left store.

    I have read many posts and wanted to get the opinion of this community before I move forward.   Because we do not use the 4.1 last I heard some issues using the option "Remove all" that it may require more disk space and others recommended to manually delete snapshots from the closest to the base, but it seems that in this case it can merge the snapshot with the original without freeing all the space.

    We are not all of the snapshots and I'm fine with delete them, but I assure you we will not run out of disk space in the process and complicate things further.

    It is best to manually remove these snapshots starting with the one closest to the base or by using the "Delete All" (or something else)?  In addition, if we go with the manual option, is it possible with the virtual machine upward or do we need to close first?

    Current snapshots:

    snapshot1.jpg

    Current data warehouses associated with VM (really unique using the 4 data store)

    snapshot2.jpg

    Actual files on the data store 4

    snapshot3.jpg

    Thank you

    Brandon

    Welcome to the community,

    After the screenshot, your virtual disk 'arrow_db1.vmdk' stocked thickness!

    With the thick disc service and ESXi 4.1 (the problem with "Delete All" is related to version 4.0), you can run safely "Delete All". However, due to low disk space, I recommend that do you with the virtual machine off. If turned on, a new temporary snapshot will be created, which - according to the workload of the virtual machine - can grow and fill in the data store.

    Due to the size of snapshot and depending on the speed of your storage space, you need to plan a few hours well downtime.

    André

  • Read file txt and research numbers

    I have a text file that looks like this:

    Ref #1 2.1 3.0-10

    Ref #2 3.3-2.3 - 1.5

    I would like the user to be able to:

    A. enter a line number in the digital control of VI and VI on-screen digital displays the numbers on the line.

    for example if the user '1' key, the three digital displays show "2.1", "3.0" and "-10"»

    B. key in a string in the control of chain of VI and digital displays in the view of the VI numbers on the line that contains the string

    for example if the user in "ref #2" key, the three digital displays show "3.3", "2.3" and "-" 1.5 ".

    An example of code?

    We can't really say what looks like your text file. What are delimiters? (tabs? space?).

    Here's what I'd do (if the file is clean (a single column separator, etc)):

    • Read the file using spreadsheet file playback using the polymorphic string instance. This gives you a 2D channels table.
    • Remove the first column and make it a table 1 d of channels.
    • Go to digital 2D table remaining channels and to convert an array of DBL.
    • Wire now two tables for a while in a loop so that the user can interact (use a small wait or structure of the event).
    • For scenario A, use the table of indexes on the digital Board to display the appropriate line.
    • For scénarion B, table search for use on the string, the index table and proceed as above to obtain the line.

    See how far you get...

  • How to display invisible characters (space, return, etc.)

    How do you do the Numbers (4.0) app shows invisible characters such as space and return transport?

    I'm not aware of a direct way to display invisible characters in numbers - regardless of the version.

  • How to remove unnecessary files from my mac computer?

    HW to remove unnecessary files from my computer without following these instructions

    MacKeeper

    Human inside

    Results of the analysis of your Mac arrived.

    The State of your system is:

    seriously

    MacKeeper found in:

    327 items

    The amount of junk mail on your Mac is:

    507 bytes

    5 cleaning
    Elements

    1 security
    Elements

    Optimization 0
    Elements

    Activate MacKeeper

    We strongly recommend that set you all the found items. Otherwise, you may experience:

    5 cleaning items

    1 security features

    Low because of unnecessary files disk space

    Theft of personal data:
    user names, passwords.
    credit card

    Already set free: 321 items.

    Activate MacKeeper
    Best regards
    Constantin
    Your Apple certified
    Technical support engineer
    1 (888) 572-5876 1 (800) 462-715 0 (808) 189-1280
    This e-mail has been sent to *.
    Please add [email protected] to your address book to ensure our emails reach your Inbox.

    If you prefer not receiving news from us, here is the link to unsubscribe.
    To change your communication preferences, use this link. Kromtech Alliance Corp., Richmodstrasse 6, 50667 Cologne, Germany Privacy policy

    Remove MacKeeper rather - we know junkware that will try to entice you to pay money, the company has had several lawsuits against it for their business practices.

    http://AppleInsider.com/articles/15/08/10/MacKeeper-to-pay-out-2m-in-proposed-CL ass-action-regulation

    Ignore it and delete the app. Where you get/download MacKeeper?

  • I get a widow in my lower toolbar that rpet low disk space, and when I click it to try to delete the old files, it does nothing... so what do I do... ?

    I get a window in my toolbar lower repeating me low disk space and when I click it to try to remove the old files, it does nothing... so what should I do to get rid of the files in a "D" file...?

    Please perform these steps and the back of the report.

    Click Start, click computer, and it will display your hard drives and their letters. Normally C: is your operating system and where everything is stored (user: files, programs, Documents, photos, etc.). The D: is your RECOVERY partition and contains a copy of the first installation of the plant. The D: is small, about 9 to 15 GB, depending on the version of Windows.

    For example, my C: displays 306 GB free (unused) 374 GB (hard disk capacity). D: shows 2.11 free 11.5 GB GB. This is normal for HP, Compaq and others. New HP (Win 7) include an E: with less than 1 GB of capacity, to store a program utility tools. These so-called hard disks are in fact partitions installed on a physical hard disk, but not to concern. The c: partition free space is your important answer. BeAware that the D: and E: (if you have the configuration described above, are never to be used as restore points, or your personal files, they are allocated by the manufacturer to support the reinstallation of the operating system.) My example shows that my C: partition made only 68GB used on the disc, 306 GB is free (unused) 374 GB capacity.

    (1) report with numbers, and you can be helped.

    (2) Vista writes copies ghosts of all your documents (previous versions of the files). These can take many GB.

    (3) when he gets less than 20 percent free, you start to have problems with the disk defragmentation. Less than 10% results in critical problems, the problems of performance and for the worse.

    (4) if the number of free GB is really a low disk space issue, you need to move some of the large data files (pictures, videos,...) out on CD or DVD.

    If it helps, let me know. I'm not a moderator, just a user trying to use simple language to help others.

  • Remove the imported chips and replace them by paragraph Style

    I imported a large number of documents to PDF and I need to remove the text format for the numbering of lettering and balls and replace them with paragraph styles. I find it difficult to arrive at a text or grep search and replace for it.

    So far I managed to assign bullets paragraph style, but I can't seem to remove the imported point. This is my poor attempt a search and replace. I guess it's possible to do it also for lettering and numbering?

    Screen Shot 2016-04-20 at 15.06.36.png

    and that's what it looks like after the change with the ball remaining.

    Screen Shot 2016-04-20 at 15.13.17.png

    Good question! Can anyone chime in with the 1-step process, but it is darn fast than two, especially if you save the first query:

    • Search: Bullet tab
    • Change of: Para style balls
    • All changes

    • Click on the trash can to delete the paragraph style
    • All changes

    Fact.

    With GREP, you might find one or several characters followed in a tab at the beginning of a paragraph (^. + ^ t) to locate any list, but you would need to set the style of bullets to bullets, the style of numbering of numbers and the AlphaNumbering style to the letters, so I don't see a benefit.

  • Removal of invalid spaces from a string

    Hi all

    I have a pl/sql string that has "new line", "Form Feed", "Carriage return", "space, Horizontal / vertical Tab" and many white space characters.

    For example:

    Variable1 varchar2 (3000);


    Variable1 = ' Hello World Hello World
    Hello everybody, Hello World Hello World
    Hello everyone"

    I need a motion to remove all spaces (specifically, it must remove \f,\t,\n,\v,\r) and the string must sees itself as below

    1 = var "" Hello World Hello World Hello World Hello World Hello World Hello everyone " "

    Help, please. Thanks in advance.

    \s will do the same thing as [: space:] and includes [\t\r\n\v\f]

    You can add [: cntrl:] to include any other potential garbage

    SELECT

    REGEXP_REPLACE)

    "Hello World Hello World

    Hello everybody, Hello World Hello World

    Hello World ",

    "[[: cntrl:] [: space:]] + ',' ') r"

    OF THE DOUBLE

    R

    ' Hello World Hello World Hello World Hello World Hello World Hello world.

Maybe you are looking for

  • ACL work properly with 10.11.3?

    I upgraded a few weeks before 10.11.3 on my server and I noticed that new files created from client computers (actions) are now owned by the creator instead of the group. They user is not yet listed in the ACL is only the group. In fact for other use

  • How to find the thermocouple type progromatically

    Hi all Is there a way to progromatically get the thermocouple set channels type? I ask because I want to write the type of thermocouple in my diary of PDM.  I suppose that if possible it is a function of property node, but I can't. Thanks for any adv

  • Remove mediaget2-is this malware?

    I was downloading the MP3 files on a blank CD. I n, t in attentive when mediaget2 showed, presence miserable s. I downloaded my music and then tried to burn an old television show and discovered my burner, Robins has been infected. Whenever I tried t

  • STOP: c0000135 {Unable to locate component} __This application failed to start because winsrv was not found. Reinstalling the application may fix this problem.

    I have a problem with my laptop which comes to hang. Bluie screen.the screen show:STOP: c0000135 {Unable to locate component}This application has failed to start because winsrv was not found. Reinstalling the application may fix this problem. In my o

  • Impossible to change the network name/icon

    My PC has three available networks. One is the network of the company, the other is a network of Connectify and the third is my guest network only Virtualbox. The corporate network and Connectify can I change the names of by clicking on their icons i