Remove the spaces and special characters.

Hi all

Here is the table of phone having a column that is 'phno' and the values are the below in this format.

I need given the output.

My client uses oracle 8i version.

EmplId

PhNO

output

121212

605/339-9276

6053399276

222222

251/813-0663

8132510663

323232

208-585-1594

2085851594

232323

352.735.8285

3527358285

Thank you

music

Hello

DEFINITION of use,

If it is possible to enumerate all special characters, do this way:

SELECT emplid, phno

REPLACE (phno

, '9 ./'

, '9'

), Exit

FROM table_x

;

If it is impossible, or if it is easier to display the characters that you want to keep, then do it like this

SELECT emplid, phno

REPLACE (phno

, '9  || TRANSLATE (phno

, ' ?' 0123456789

. '?'

)

, '9'

), Exit

FROM table_x

;

Whatever it is, the argument 3 of TRANSLATE is one of the characters that you want to keep (any), and the 2nd argument is that same character, followed by all the characters that you want to remove.

Nevermind, you use such an old version.  Regular expressions are much easier.

This will leave 1 "at the beginning of '13527358285'.  How to remove characters like this depends on means exactly what "characters like this.  It can probably be done in Oracle 8 without too many problems, according to your needs.

Tags: Database

Similar Questions

  • 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,"" ");

  • Space and special characters in a header.

    Hi all
    I have a problem with the header of a report I want to generate by ODI.
    I reproduce an old report which had the header of column, something like XXXXx YYYYY YYYYY.
    If I put exactly the same header with spaces in ODI, he doesn't; then, I found a work around putting underscores (XXXX_YYYY_YYYYY).
    It does not work to put the header between some special characters like or "because I already tried.
    Is it possible to avoid the use of underscores?

    Thank you
    Not

    Hello

    I did a few test and to do what you need to customize some KM medium...

    GOLD:

    (1) create a file with the header in a procedure (or even as a stage KM).

    You can use a simple procedure not as:

    The OS command

    the echo of MY header; COLUMN 1; COLUMN 2; > MY_TARGET_REPORT.txt

    (2) run you interface with no header generation.

    Make sense?

    Published by: Cezar Santos 22/01/2009 13:10

  • See 5.2 management "Files and folders excluded from the roaming" Persona of the wildcards and special characters

    We want to exclude the character of AppData\Roaming\test_*.doc or AppData\Roaming\Macromedia\Flash Flash #SharedObjects and we have added to the list of exclusions, but they keep ending upward in the repository. Other exclusions are working as expected. What we should expect?

    If wildcards work, it would also be nice to be able to exclude AppData\Roaming\Mozilla\Firefox\Profiles\ * \minidumps

    Hi Eric,.

    Character does not currently support the use of wildcard characters in the configuration options.  For example, "AppData\Roaming\test_*.doc" and "AppData\Roaming\Mozilla\Firefox\Profiles\ * \minidumps" will not work.  However, I myself have tested 'AppData\Roaming\Macromedia\Flash Flash #SharedObjects' with 5.2 and it works very well.  Please note that "Files and folders excluded from roaming" not delete all existing files in the remote folder.  It simply prevents the files in the remote folder to be created in the local folder during logon, and it prevents any changes in the local folder from replication to the remote folder.  This allows to turn off the setting and return the original data if you need to.

    Please let me know if you have any other questions.

    Thank you

    Erik

  • Remove the spaces between the css attributes?

    Hello! I know that I can customize my preferences to 'apply the updated source shaped', but it is automatically added to spacing to the attributes of the tag and I don't see a way to change this in the options I give. I want to write my code without spacing in the attributes. Believe it or not, it is easier on my eyes in this way.

    That's what I prefer:

    whatever {width: 40%; height: 25% ;}}

    If I use source formatting, it does this:

    whatever {width: 40%; height: 25% ;}}

    If I can't change this behavior in the settings, not much, but I want to assure you that I have not just miss.

    Thank you!

    You don't miss anything.  DW uses conventional spaces between the CSS attributes.

    You can shrink your CSS code at the end of the project.  That will remove the spaces and line breaks.

    Nancy O.

  • Remove the left and right spaces with calculation

    I read in this forum that I can create a SQL expression calculation after 'Send' to remove the spaces to the left. I put in the source: ltrim(:P209_DESCRIPTION), but it did not work. You have another idea to achieve this? Thank you.

    Let us first find what you really use the following to replace all tabs with ' ~' and all the spaces with "%". This will give us a clearer picture of the characters that we have

    Select translate ('asd fd, chr (9) |) Chr (32),'~ %') of the double

    Then, we can use

    Select ltrim (: P209_DESCRIPTION, chr (9) |) Chr (32)) of the double

    for trim tabs and spaces

    Kind regards

    Vishal

    Oracle APEX 4.2 reports | Packt Publishing

    Vishal blog

    Please mark the reply as useful/correct if it solves your problem

  • Web development Toolbox prevents me from using the letter upercase, special characters and all that requires the use of the SHIFT key. Help.

    whenever I press the SHIFT key, the web development Toolbox opens. I am unable to use the letter upercase, special characters and everything that requires the SHIFT key. It's really annoying me... i can't even use an exclamation mark111111

    The sounds you have a sticky key which is in the pressed state.

    Do you mean the box tools that should open via Ctrl + Shift + K or open more to the Toolbox that is displayed via Ctrl + F2?

    Try to press the keys involved several times, see the Web Developer menu for the shortcut keys.

    Have you tried to close and restart Firefox or restart the computer?

  • Need to remove the space between &lt; af:panelGrouplayout &gt; and &lt; af:panelBox &gt;

    Hi all

    I use JDeveloper 11.1.1.6.

    My scenario is I need to stretch some fields for all browsers, so I use Panel box inside the < f: facet center = name > panelStretchLayout.

    It works very well. But some scenarios need to display the header above the group box elements. Then I try to add panelGroupLayout in < f: facet = top name >. It is stretching very well, but is always to show space between < af:panelBox >.

    How can I remove the space between < af:panelGroupLayout > and < af:panelBox >?

    My Codes like this,

    < af:panelStretchLayout id = "PSL1" inlineStyle = "" margin-top: 30px; ">"

    < f: facet = 'top' name >

    < af:panelGroupLayout id = "pgl4" layout = "vertical".

    inlineStyle = "" background-color: red; ">"

    < af:panelGroupLayout layout = "horizontal" id = "pgl1" >

    < af:outputText value = 'Day' id = "ot1" / >

    < af:outputText value = "Week" id = "ot2" / >

    < af:outputText value = 'Months' id = "ot3" / >

    < af:outputText value = 'Year' id = "ot4" / >

    < / af:panelGroupLayout >

    < / af:panelGroupLayout >

    < / f: facet >

    < f: facet name = "center" >

    < columns af:panelDashboard = rowHeight '1' = "100%" id = "pd1" >

    < af:panelBox id = "pb1" showDisclosure = "false".

    showHeader = "never" > < / af:panelBox >

    < / af:panelDashboard >

    < / f: facet >

    < / af:panelStretchLayout >


    Thank you...

    Same answer as your other thread need to hide the space between &

    Use firebug to see if a style is the cause because it is not reproduced.

    Timo

  • New HP Photosmart 7520 e-all-in-one printer from the box, removed the tape and cartridge access

    I have a new HP Photosmart 7520 e-all-in-one printer just out the box. I removed the tape and cartridge access door does not open more than 40 degrees. The figure represents about 80 degrees. I'm afraid to force it. I can't put new cartridges in the printer. Very frustrated trying to get help. It doesn't seem to be a phone number or Web site for direct assistance. HP has really gone down hill. Help!

    Hello

    Mine is about 45 degrees, sufficient space to install the ink cartridges.

    Kind regards.

  • How can I remove the footer and header view print?

    The function "file > config page" does not display the options to remove the footer and page header.

    This has happened

    Each time Firefox opened

    == I try to print

    If you want to remove the header or footer at all times (there is no user interface as in the layout under Windows or easily change) in Firefox under Linux, you can erase the preferences different values to get rid of both of them.

    Type of topic: config in the URL bar and press ENTER.
    If you see the warning, you can confirm that you want to access this page.

    Filter = header
    Each of these prefs right click and select Edit, then backspace or use delete to erase the characters - and then click OK.

    Repeat the same for the footer.

  • Problem with cfhtmltopdf and special characters

    How can I fix cfhtmltopdf showing '? ' for special characters "1/2", "3/4", "•"? We have 11,0,07,296330 Standard in ColdFusion Server installed.

    After further research and discussed with our system/DBA administrator, we suspected that he needed the CF11 Server JVM setting. We have added '-Dfile.encoding = utf8 "to java.args in ShadoMX/util/Flex/SDK/bin/jvm.config and special characters displayed correctly.

  • remove the space between the divs

    Hi people,

    Is it possible to remove the space between my fluid layout divs? This is the page: http://primerestaurant.co.nz/new/queenstownfood.html and this is what it looks like in my Dreamweaver workspace: http://i.imgur.com/81Hdjb0.png

    I want to bring the menu div and text until you reach the divs, address and picture. There is no fill (that I can see) or the margins, which would be keep so far.

    Thank you in advance for advice.

    JO

    Add this to the top of your text.css file:

    * {

    margin: 0;

    padding: 0;

    -moz-box-sizing: border-box;

    -webkit-box-sizing: border-box;

    box-sizing: border-box;

    border: 1px dotted Red; / * for test purposes * /.

    }

    It tells me that the content is pushed to the bottom of the EasyRotator element.

    Nancy O.

  • Remove the space in cells.

    Hello guys,.

    I had this problem.

    When we receive our customers indd files,

    There is sometimes a space first in each cell then comes a number of tables, and sometimes there is no space.

    See the examples below.

    "2133".

    "2344.

    '123 '.

    '123 '.

    I need to remove the space

    could someone help me to write a function that loops through all the tables and check the cells if there is a space in the cell

    Thanks in advance

    Try this,

    var doc = app.activeDocument,
      _tables = doc.stories.everyItem().tables.everyItem().getElements();
    app.findTextPreferences = app.changeTextPreferences = null;
    for(var i=0;i<_tables.length;i++)
    {
            app.findTextPreferences.findWhat = " ";
            app.changeTextPreferences.changeTo="";
            _tables[i].changeText();
        }
    app.findTextPreferences = app.changeTextPreferences = null;
    

    Kind regards

    Cognet

  • Remove the spaces between two many a varchar2

    Hello world

    I have a question of respect to remove the spaces of a varchar2.

    The varchar2 is 7987451 1234567' and I need this string as 7987451 1234567', because the field has a length of 15.

    I try with cela, but does nothing

    Select TRIM (7987451 1234567') of double

    Other possibilities are finding several spaces and try to replace it with a single, but would be a heavy work (maybe with phrases in a loop).

    This problem is now in our process of loading.

    There is a function to replace the spaces between the numbers of varchar2?

    Thank you!

    Kind regards
    Daniel Hidalgo

    Like this?

    SQL> ed
    Wrote file afiedt.buf
    
      1  select regexp_replace('7987451            1234567',' +',' ') as new_val
      2* from dual
    SQL> /
    
    NEW_VAL
    ---------------
    7987451 1234567
    

Maybe you are looking for

  • Keithley scan 2000 delay time

    I'm updating some legacy in Labview code that was written for a Scan Keithley 2000 DMM with 10 Channel relay card.  Right, the code now contains a delay between selection of a channel of meter and read the data.  The time is 1 second. I could not fin

  • Track 3D whose origin (0,0,0) by default?

    I'm trying to plot data 3D on a trace of contours, and for some reason, the plot seems to always include the origin (0,0,0), even if it is not included in the data set. As a result, my surface contour ends up looking a bit wobbly. It helps that I hav

  • Got the following error please suggest ways to solve this problem, thank you.

    I have Windows vista home basic version and received the following error message. Not able to install new programs so lately. Apart from that if I right click and try try to customize it would not allow me to... file opens and closes by itself! Produ

  • Network location using cmd of the tree card

    I currently work for a small company where record us everything on a NAS drive that appears just like any computer in the network. We head to a correct server and I would like to be able to print or save the tree of this player, so we can see how all

  • 8.1 recovery disks

    How can I make 8.1 recovery disk?