How to extract text with regexp_replace numbers

Hi guys
I have the following... ' > 14 413 (4) > 14 567 (1)... »
and need to extract the numbers to ensure...

14413
14567

I used this command
REGEXP_REPLACE (' > 14 413 (4) > 14 567 (1) ','-([^ ()] *------)', ")

and got this response is still not ideal...
14413 14567 >
someone at - it suggestions...

Thank you...


I use oracle 10g r2.

Published by: claudioaragao on 02/01/2013 07:28

Hello

Here's one way:

SELECT  LEVEL         AS n
,     str
,     TRANSLATE ( REGEXP_SUBSTR ( str
                          , '>[^(]*\('
                      , 1
                      , LEVEL
                      )
            , '0 >('
            , '0'
            )     AS str_num
FROM     table_x
CONNECT BY     str     = PRIOR str
     AND     LEVEL     <= LENGTH (str)
                - LENGTH (REPLACE (str, '>'))
     AND     PRIOR dbms_random.value           IS NOT NULL
;

I hope that answers your question.
If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
Explain, using specific examples, how you get these results from these data.
See the FAQ forum {message identifier: = 9360002}

Tags: Database

Similar Questions

  • How to extract text from a GIF Image?

    I have 47 lines typed text parsed as (.gif) image file.  I want 47 lines of text from the image, so it can be edited in MS Word. I've attached an example image file. I have several of the same format image files. How to extract text from an image using Photoshop CS2. In Photoshop CS2 image text layer is locked. During extraction using OCR it gives words and symbols, should be a lot of words spruced up. Kindly help to extract text using Photoshop CS2. Thank you.

    14.gif

    This has nothing to do with PS. Others are simply limits to all OCR process and you will have to live with it, especially since your image is extremely low resolution and the font used is not particularly suitable for OCR, either - too many thin areas will be ignored or interpreted as gray. Whatever it is, it took me 2 minutes to write this response at this very moment a bad typist like me might have re typed your text from scratch, just access it so...

    Mylenium

  • officejey4632: how to make letters with the numbers on the keyboard of my officejet printer 4632

    need to put in the letter and numbers then how can I go from one to the other?

    Hey @septb5,

    Welcome to the Forums of HP Support! I hope you enjoy your stay here.

    I understand you are trying to change from letters to numbers on your Officejet 4632 e-all-in-one printer. I can help you with that.

    When you press a key on the keyboard repeatedly, he spends the lowercase, uppercase, then the numbers. So, for example, if you press the 5 button eight times the highlighted key will go j-k-l-J-K-L-5-j. If you the five necessary then press the button seven times. If you press these keys too slowly then the printer stops at the last key that has been highlighted. You can use the left arrow to the left of the screen to go backward one space.

    Please let me know if you have any other questions. If not, have a great new year!

    If this solves your problem, then please help others find this post by clicking on accept as Solution on my post.

    If you appreciate my help, so please let others know by clicking on the icon below my post thumbs up.

  • How to extract xml with namespaces

    Hi all

    Here's the XML I:

    <? XML version = "1.0" encoding = "UTF-8"? >
    -< transaction xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns = "http://schemas.test.com/Support/Services/test1/2012" xsi: schemaLocation = "http://schemas.test.com/Support/Services/test1/2012 Support.test1.v1.xsd" >
    -< application >
    < > 10 Sam < / Sam >
    < > 32 Actid < / Actid >
    < Pax > 3 < / Pax >
    < > 10 - DEC - 2012 Flt < / Flt >
    < user name > WebUserNameTest < / name >
    < / request >
    < application >
    < Sam > 1 < / Sam >
    < Actid > 3 < / Actid >
    < > 2 Pax < / Pax >
    < Flt > 2012 - dec - 12 < / Flt >
    < user name > WebUserNameTest < / name >
    < / request >
    < / transaction >

    I need to extract the item values:

    The code below will help me when I have no namespace, what needs to be done in order to work with the value of the element namespace and etract

    v_string_xml: =.
    ' / / Query [' |] To_char (counter_xml) | '] / Sam / text () ';
    v_ssp_table (v_ssp_table. COUNTY) .memid: =.
    p_xml_in. EXTRACT (v_string_xml) .getnumberval ();

    v_string_xml: =.
    ' / / Query [' |] To_char (counter_xml) | '] / Actid / text () ';
    v_ssp_table (v_ssp_table. COUNTY) .actid: =.
    p_xml_in. EXTRACT (v_string_xml) .getnumberval ();

    v_string_xml: =.
    ' / / Query [']
    || To_char (counter_xml)
    || '] / Pax / text () ';
    v_ssp_table (v_ssp_table..) Pax COUNT): =.
    p_xml_in. EXTRACT (v_string_xml) .getnumberval ();

    v_string_xml: =.
    ' / / Query [' |] To_char (counter_xml) | '] / Flt / text () ';
    v_ssp_table (v_ssp_table..) Flt COUNT): =.
    p_xml_in. EXTRACT (v_string_xml) .getstringval ();

    v_string_xml: =.
    ' / / Query [']
    || To_char (counter_xml)
    || '] / Username / text () ';
    v_ssp_table (v_ssp_table. COUNTY) .username: =.
    p_xml_in. EXTRACT (v_string_xml) .getstringval ();

    Published by: akm006 on March 19, 2013 11:11

    Try

    SQL> declare
      2  x xmltype := xmltype('
      3  
      4  
      5  10
      6  32
      7  3
      8  2012-DEC-10
      9  WebUserNameTest
     10  
     11  
     12  1
     13  3
     14  2
     15  2012-DEC-12
     16  WebUserNameTest
     17  
     18  ') ;
     19
     20  v_string_xml varchar2(100);
     21  v_string_xml_ns varchar2(500);
     22  v_ssp number;
     23  counter_xml number := 1;
     24  begin
     25
     26  v_string_xml := 'Transaction/Request[' || TO_CHAR (counter_xml) || ']/Memid/text()';
     27
     28  v_string_xml_ns :='xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.test.com/Support/Services/test1/2012"';
     29
     30  v_ssp := x.EXTRACT(v_string_xml,v_string_xml_ns).getnumberval();
     31
     32  dbms_output.put_line(v_ssp);
     33
     34  end;
     35  /
    
    10
    
    PL/SQL procedure successfully completed
    
    SQL>
    
  • How to extract text in the columns of a .pdf file

    I have a .pdf document that is arranged in columns.  I tried export in crude as a .doc file and copy/paste-ing text highlighted text.  In each case, the text comes out tangled.  In other words, it reads a line across all three columns.  If the text among the three columns tangle together and very tedious to separate and pick up in the right order.

    I have a lot of text extracted of .pdfs but have not run into this problem before.  Is it possible to fix it?

    Hello

    For the selection of text in the column, you can use the tool of selection in column selection mode. To do this, go to tools > Select & Zoom > selection tool. Afterwards, press the Alt key and drag to select the desired column. By pressing the Alt key with the active selection tool the selection Mode of the column.

    Kind regards

    Swati

  • How to create text with a bar full of color boxes at the top of page 1/3?

    I am in the design of learning and using CS4

    I want to create a form with boxes like those below.

    Picture 5.png

    I understand how to set a block of text on top with white text, but how can I box behind that bar (incl. rounded corners) color

    Once I have the design that I was intending to use the Adobe PDF software to use their tool to have a PDF form.

    So I would ask as I go about it in the right way?

    I appreciate any help - thanks a lot. John

    It is a multi-step process and can be done in a number of ways. Here's one way:

    Create a rectangle and rounded a corner. Then, create a column once, two-row table. Fill the upper cell with the blue wire. Make sure that it is a little wider than the original rounded rectangle. Cut the table to the Clipboard and then select the rounded rectangle frame and choose paste into.

    That should hopefully help you get started.

    Bob

  • How to extract file with LabVIEW Teststand global variables

    Hello

    My goal here is to extract all the contents of the global variables for file (names and the value of any types) in a sequence of my LabVIEW UI file.

    For now, I can only open a file of sequence of LabVIEW and get the number and the names of the variables (cf. vi) attached.

    But if my variable is a container, I would like to know all the contents of this container (and so on) and I don't know how to do it.

    In addition, I have to extract the value of variables that I don't know the type in advance...

    Can you help me?

    Thank you.

    Well I finally used the method "GetNthSubProperty" to work on each variable and I use the property 'Type' to know if it's a number, string, boolean, or a container. If it is a container, I repeat the process at a lower level... (see attached vi)

  • New on this... How to move text with the contents of overflow to the new page?

    When the content in a text box is too big and must go beyond the next page, how can I do this? I can't so...

    Click on the small red + sign below to the right. Then click on the next page.

    If you hold the SHIFT key when you place the text it will sink to fill all the pages.

  • How to find text with a specific point size objects

    Can I somehow fine-tune the selection point size xx and smaller? I would like to explain these objects later.

    var alltxtObjsBelow10 =  app.activeDocument.stories.everyItem() //...with point size smaller than 10pts
    alltxtObjsBelow10.createOutlines();
    

    Try this.

    var doc = app.activeDocument;

    var texts = doc.stories.everyItem ().textStyleRanges.everyItem () .getElements ();

    for (var i = 0; i)<>

    {

    If (texts [i] .pointSize<>

    {

    texts [i] .createOutlines ();

    }

    }

    Kind regards

    Cognet

  • How to move text with styles between the docs? [CS 5.5 + JS]

    Here's what I have to get a document & insertion point reference:

      if (! app.selection[0] instanceof InsertionPoint) {
         alert("Your cursor must be a single insertion point! Try again.", "Insert single Word file");
          return;
     }
     var currDoc = app.documents[0];
     var importHere = currDoc.selection[0]
    

    I have the systematic Cleanup job, can enter the text cleaned with

     cleanupFrame.paragraphs.itemByRange(startFrame.paragraphs[0], startFrame.paragraphs[-1]).select();
     app.copy();
    
    

    But then, what? It should be simple enough to be invisible for me. I tried different things, but I have to need a boost.

    TIA.

    Use the Move() methods

    Moving text (to: LocationOptions[, reference: varies])

    Moves the text at the specified location.

    Parameter Type Description
    TO LocationOptions:
    LocationOptions.BEFORE
    LocationOptions.AFTER
    LocationOptions.AT_END
    LocationOptions.AT_BEGINNING
    LocationOptions.UNKNOWN
    The location relative to the object within the container object or reference.
    Reference Cell
    Column
    PageItem
    Line
    History
    Table
    Text
    The reference object. Note: Required when the parameter specifies before or after. Can accept: text, history, cell, row, column, Table or PageItem. (Optional)
  • How to: transparent text with border and transparent text box?

    I would like to place a callout directly on an image that has a transparent semi information, but retains the fully opaque text. If I create a < div > class with a transparent background, it seems that everything in this div retains the same opacity settings, even if I reset it with the < div > elements.

    Is there a way to get around this?

    Thank you

    Mark

    I was trying to avoid additional images.

    A picture is sometimes a better choice.  Use a very small semi-transparent png image and repeat.  Background image can be as small as 2 pixels x 2 if very small.

    The problem with an opacity of CSS, it's that you need different rules for each browser engine: Moz, webkit, IE...

    Examples with the code:

    http://ALT-Web.com/sample.html

    And opacity extends to everything inside, this text is gray.  For this reason, I prefer to use an image instead of opacity CSS.

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics |  Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB

  • How to mix text with a brush?

    I have the letter T, and I want to thank the T is a very long line. But I can't understand how it mix well so that it looks like one, not like I tried to combine. Here is a screenshot to make it more clear what I'm trying to do. I use Adobe Photoshop CS4. Any inside would be appreciated!

    .Screen Shot 2014-09-18 at 3.21.17 PM.png

    Screencast:

    Nancy O.

  • How to display text with findText()

    Dear Sir

    I use findText() to search for a string in an existing document.

    I work when I use the method of the length of it that is me the number fo point fiound.

    I want to go to the page where it was selected and find the search text.


    Thanks for your help!

    Hello

    I always do this way.

    Select each result and the zoom, you will jump to the page.

    var doc = app.documents[0];
    app.findTextPreferences = null;
    
    //current zoom percentage
    var zoom_bk = app.activeWindow.zoomPercentage;
    
    //keyword
    app.findTextPreferences.findWhat = "anytext";
    
    //found collection
    var result = app.findText();
    
    for (var i=0; i < result.length; i++) {
         result[i].select();
         app.activeWindow.zoomPercentage = 400;
         //jump to each "anytext"
         alert(app.findTextPreferences.findWhat + " was found " + (i+1) + "/" + result.length);
    };
    app.activeWindow.zoomPercentage = zoom_bk;
    

    mg

  • Can I still use Windows journal, if I have the handwriting recognition and just type my text with the default keyboard input?

    I have a Gateway laptop computer and I tried to use Windows journal without handwriting recognition.  So, he feels a bit lame that I can't understand how to enter text with my default keyboard or whatever it takes.  I think I'm pretty computer, so maybe I am an annomaly of persanal that seems to happen to me a lot!  Thus, any help I can get with this problem would be cool.  I type to fast however, just hunt and Peck, so please be patient.  Thanks in advance!

    Best regards, bryznet

    Hi bryznet

     

    Windows Journal is part of the Group of Tablet PC accessories. It is not a keyboard application.
    It is an application ink for taking notes of ink and writing to text conversion.
    If you want to simply type in the text, you can use a word such as Notepad or Microsoft Office Word application.

    If you want a combination of features of ink and/or the text of note taking, then watch Microsoft OneNote (think of it as Notepad Word, OneNote is)
    http://Office.Microsoft.com/en-us/OneNote/

    I hope this helps.

  • Can I extract text from a document of numbers?

    I made a list of items in a document of numbers so I could get an alphabetical sort it. Now, I would like to copy this text into a Pages document. I select the text in the document numbers, copy it, then paste it into the page document, but what appears is the table cells and text. I don't want to just text, no table or cells. I know I did it easily in the distant past, but I can't figure out how to do it now. Can anyone help?

    Seems that I just answered this query in ' numbers rtf or pages of text (without formatting)... that day, I suggested FIRST by pasting in a TextEdit TEXT document (RTF, not).

    Alternatively, you can do this by creating a TEXT BOX in your document Pages and sticky in that is to replace the words Type to enter text into a new text box. Once she IS... text with tabs between cells... maybe then it can be copied and pasted anywhere in your document Pages and you can delete the text box.

    Memory, numbers and Pages 09 may have accepted info copied and pasted into a different path however since update to current versions of the use of an intermediate text box or through text using another app like TextEdit is necessary.

Maybe you are looking for

  • Mac remove cookies on 'Close' vs. ' Quit?

    On a Mac. I have set cookies to remove the closure of Firefox. BUT clicking on close (red X radio button) is not like on a PC. The Mac it basically puts in the dock as a minimum. So, I have to exit the application. Is it possible to delete/remove the

  • Problem with nested structures event

    Hello I'm rather new to Labview and I wanted to use a structure of nested in one of my programs at the event. However, I seem to fail to do things. I created a minimal example of construction that I use, you will find in the attachment. The idea behi

  • How to use the coupling AC in NO-Scope 5122

    Hello I use no-Scope 5122. Here, I have a problem with the help of AC coupling. The error indicates that valid values are coupling-DC, HF reject. But the manual of 5122 said coupling AC can only be used if the input impedance is set to 1mW. Even afte

  • DMA2200 and Windows Media Center

    Hi all I just bought one of these and already have problems WMC - which suggests a glance through this forum is not uncommon! In any case, I hope someone has the answer to my problem, which has the same symptoms that others have reported, but none of

  • current security settings do not allow files to be downloaded from attachments

    Original title: security settings current security settings do not allow the files to download attachments to emails. Not even when I send them to me. I tried changing the settings, but it did not have any diff.