How to extract the same part of the substring of two strings?

How can I retrieve the first identical substring of two strings?
version: 10 gr 2
as for example:
Given:
str1: randomStringWith123abc
str2: randomStringfor345abc

Get:
substr:randomString

Given:
str3: dummyhowareu
str4: dummyiamfine

Get:
substr:dummy
As you can see, the size of the substring is unknown.

any ideas?

Hello

something like this:

with x as (select 'dummyhowareu' str1, 'dummyiamfine' str2 from dual)
select replace(str1,ltrim(str1,str2))
from x

Herald tiomela
http://htendam.WordPress.com

Tags: Database

Similar Questions

  • How to extract the time to a string with lots of information?

    Well guys,.

    I have a question here...

    I need to extract only the TIME to a string. But that chain has a lot of information

    as a 'Identification' text data and time...

    This "Identification" may be only letters or numbers or words of 2 or 3...

    Anyone know a good way to do that?

    I tried:

    But only works if 'Identification' is only 1 Word...

    I'm using LabVIEW 7.1

    and the format is: ID - 14/04/2010 - 13:32:25

    Thank you

    Regular expression matching is available in 7.1?

    Match pattern works, too.

  • How to extract the characters of mixed string?

    "I have a string like ' ORA123CLE * () ^ % ^ & NET + -* / WORK"

    I need output like-> ORACLENETWORK

    Hello Bharathoracle

    SELECT REGEXP_REPLACE (' (ORA123CLE) * ^ % ^ & NET + -* / WORK ',' [^ [: alpha:]]', ") FROM DUAL;

    Kind regards

    David

  • How to get the substring of this string

    Hi friends,

    "ERF/11/414/KWT/IRC762.

    in this I need the string after C...

    I have to select the channel and finds the first occurrence of C in the last string and get the number after C every time
    what the chain can be

    I always check the first occurrence of C in the last... and retrun the number after the C

    How to make

    pls let me know

    He should give me the chain until the IRC avoiding 762

    This?

    SQL> select regexp_substr ('ERFC/11/414/KWT/IRC762', '.*C') num from dual
    /
    NUM
    ----------------------------
    ERFC/11/414/KWT/IRC     
    
  • Need urgent help! In my Vision Application, how to extract the parameters of the geometric model specified curve was generated by the template editor OR?

    I have an application of machine vision, in which the geometric pattern match technique was used to find the target in the images of type variant.

    as we know, we do a geometric model by model OR editor in the editor we can adjust the parameters of the curve specified settings to get the desired curves and we derive the custom box to ignore during the match. then we save the use of the same model in our application of vision.

    Now my question is coming. When I program my request for the geometric game. I have specified the parameters of the curve for the entrance of the IMAQ Advanced Setup learn ringtone 2, of course, I have to adjust this identical to the model, but I don't know how we extract the geometric model. I tried all the methods, for example, I can read data custom, IMAQ get characteristics of the geometric model(it's just for the basic functionality? so is there even a VI based edge?), even at anasys PNG file formats! But I can't read the info of the geometric model by myself!

    It is also illogical to adjust the CURVE SETTINGS manually again for the " IMAQ Advanced Setup Learn Pattern 2" after that I already have in the template editor OR!

    Hello

    Why do you need to specify the curve settings once again, if you have already built a model using the template editor? You don't need to use "IMAQ Advanced Setup learn geometric model 2 VI" to find games (see the attached example).

    You can wire the 'curve settings' control to 'IMAQ configuration geometrical game model 2 VI', but the values are not used if wire you a Boolean true to the node "use learning curve settings" (it's like that by default). To prove it, I enclose a small program with pre-created model (using the template editor) for a geometrical alignment. The model and the test of three images are also included.

    Try changing the settings of the curve with the 'use know curve settings' enabled, and you will see the corresponding score remains the same. Disable the Boolean control, then try to change the curve settings.

    Also take a look at the detailed help for "IMAQ configuration geometrical game model 2 VI", specifically the "learning curve parameters of use."

    I hope this helps.

    Best regards

    K

  • How to extract the signal from the waveform of my power level designated?

    Hi all

    How can I extract the signal of the waveform accroding to the power level? I read the Trigger & Gate .vi, but this vi retrieves the signal duration. I want to extract the signal depending on the power level.

    As shown in the following figures, the signal I want to deal with is between 130000 to 140000, if I Zoom, I can see the useful signal is between 135400 to 138200. The question is how to extract the signal in the area?

    I tried the sub_NoiseEst_And_Chop_Shell.vi in the example of Packet_based_link also, but this Subvi seems to be a bit slow. Can someone give me the best advice? Thanks in advance!

    I'm working on something similar, but have not had time to fully develop.

    My idea was to use an envelope detector (low pass filter) and then use a detection of energy VI on the envelope.

    Here is where I left

  • I downloaded a free trial of Adobe Creative cloud and dreamweaver CC. I am not able to download a .psd to see how to extract the HTML and CSS.

    I downloaded a free trial of Adobe Creative cloud and dreamweaver CC. I am not able to download a .psd to see how to extract the HTML and CSS.

    Download button is disabled. What is the case for a free trial?

    Hey girijamg,

    I asked that you try to open a page because snippet Panel will be disabled until there is a html page is open in DW.

    Excerpt from Panel will be ready for the job that after any html page is open in DW.

    Hope it makes sense.

    Lalita

  • How to extract the values of XMLTYPE column,

    SQL > create table temporary global xmtype_tab (xmlfile xmltype);

    SQL > select * from all_directories;

    SYS RESTOREDIR/home / / dbimptask /.

    insert into xmtype_tab values (xmltype (dbms_xslprocessor.read2clob ('RESTOREDIR ','LAS_SETUP.xml ')));

    1 line of creation.

    SQL > select * from xmtype_tab;

    XMLFILE
    --------------------------------------------------------------------------------
    <? XML version = "1.0"? >
    rowset <>
    < ROW >
    < DATA_CAPTURE_ON > 1 < / DATA_CAPTURE_ON >


    How to extract the values inside each tag?


    XML file has the following data...


    rowset <>
    < ROW >
    < DATA_CAPTURE_ON > 1 < / DATA_CAPTURE_ON >
    < > 9600 BAUD_RATE < / BAUD_RATE >
    < ACK_TIMEOUT > 1 < / ACK_TIMEOUT >
    < TUBE_TRAVEL_LIMIT > 4 < / TUBE_TRAVEL_LIMIT >
    < SEND_SID_TIMEOUT > 1 < / SEND_SID_TIMEOUT >
    < INDEX_Q_TIMEOUT > 2 < / INDEX_Q_TIMEOUT >
    < HW_HANDSHAKING > 1 < / HW_HANDSHAKING >
    < / ROW >
    < / LINES > ';

    I use the Oracle 10.2.0.3 version...

    Why does this work?

    You are missing the tag of the ROWSET:

    select extractvalue (xmlfile, '/ROWSET/ROW/BAUD_RATE') baud_rate
      from xmltype_tab
     where existsnode (xmlfile, '/ROWSET/ROW/BAUD_RATE') = 1;
    
  • How to change the background color of string programmatically?

    How to change the background color of string programmatically?

    Are you talking about string indicator and control chain? If so, right-click on a control/indicator of string and select Create-> property Node-> text-> text-> BG Color colors. Change to write and a number of the color you want to use phone.

  • How to compare the content of two Wordpad / documents notebook without reading them line by line?

    How to compare the content of two Wordpad / documents notebook without reading them line by line?

    Hello

    Without this feature is included in the operating system.

    However, you can use your favorite search engine to look for software that needs to perform these tasks.

    WARNING of THIRD PARTY SOFTWARE: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information helps.

  • How to choose the value of a string are numeric together and words of letters (for example, TEST)

    Hi all

    How to choose the value of a string are letters (for example, TEST) and all numeric...

    for example
    TEST 123456
    TEST 34567
    123456 ABCD
    1234 TEST
    TESTING 12345
    TEST 1@234$
    YOUR T 123456

    I want the results of the query as below.
    TEST 123456
    TEST 34567

    And I tried to use regexp_like in this case but without success. See the code below.
    SELECT * FROM TABLE WHERE regexp_like (Description, ' [TEST] % & [[: digit:]] + $');

    How can I do this, please answer.

    Thank you

    WF

    If you want to return only the rows that contain the string 'TEST', followed by zero or more space characters, followed by one or more digits?

    How about this:

    SELECT *.

    FROM my_table

    WHERE REGEXP_LIKE(description,'^TEST\s*\d+$')

  • How to calculate the sum of two digital form fields based on the selection of the checkbox.

    I have a form in Acrobat Pro who needs a custom calculation. How to calculate the sum of two digital form fields based on a selection of the checkbox. I have three number fields. Field-A and B are simple one or two digits. Field-C is the sum, or the total field. I want to field-C have a control box which, when turned on and off, just gives a. gives the sum of A + B

    _ Field - 2

    _ Field - A 4

    [check] _ _ field - 6 C

    [disabled] _ _ field - 2 C

    Thank you

    The custom field C calculation script could be:

    (function () {
    
        // Get the values of the text fields, as numbers
        var v1 = +getField("A").value;
        var v2 = +getField("B").value;
    
        // Set this field's value based on the state of the check box named "CB"
        if (getField("CB").value !== "Off") {
            event.value = v1 + v2;
        } else {
            event.value = v1;
        }
    
    })();
    

    Replace 'A', 'B', and 'CB' with the real names of the fields.

  • How to divide the screen into two parts in order to see the two different parts of the same file? [Suggestion] [Android]

    I am Brazilian and I use Adobe Acrobat Reader DC a lot. I would suggest an implementation of features present in the PC, I missed a lot of things on Android, which is 'New window' or something like that, like split the screen into two parts in order to see the two different parts of the same file.

    For smartphones, its use is restricted, but for tablets, it can be really useful, because it allows the display of two distinct points of the same file,

    I have reduced considerably the use of paper using this application, however, I need to navigate the file always pick up a few points seen earlier, which causes a lot of discomfort compared to printed documents.

    This is a suggestion, but I would like it to be considered.

    Thank you for your request. We have taken note of the same and must try to integrate it into one of our future releases.

    Thank you.

  • How to extract the names of file/URL of all files in a folder (in the same directory of site)?

    I am creating an online music player, simple Flash-based; the user clicks on a song in a DataGrid, and then he plays, simple. I displays the information of the song with the ID3 method in the class 'sound', but I don't want to hardcode all the songs in the ActionScript code, because I change them. I created a folder "tracks" in the directory of the site; How can I extract the names of the files in this folder without knowing how many there are by nature, and files without knowing the URL?

    Use PHP or another script server to read the contents of the folder and to deliver the names of files for Flash in the form of data (xml or txt).

  • How to extract the police from a .pdf file?

    I read a novel in the form of ebook .pdf file. The police is beautiful and I've not seen before. In the pdf file, the police are the same (vary in size, boldness, etc., but the police are the same).

    Can someone tell me if there is a way to extract the name of the font used in the file?

    I went to properties-> fonts and this is the information I found:

    What's the Font.JPG

    Also if you are able to identify the police by simple observation (behind the Properties window, that the word 'way' is written in the font I want) please let me know.

    Kind regards

    -sgsawant

    It looks like a font that comes is not recognized. There is not much you can do about it. I guess you are trying to say that you just want to know what it is if you can go buy it?

    If so, one thing you could do is to take a screenshot of part of the text then run via http://new.myfonts.com/WhatTheFont/. It does a decent job of identification of fonts.

Maybe you are looking for

  • laptop HP 250 g2: how to recover the product key

    I want to recover my product key to activate my windows

  • E2000: HP mobile e2000

    Hello I have reinstalled windows 7 ultimate 64-bit on my laptop e2000. the laptop can connect to the internet. It is said that it needs drivers. Please recommend drivers to use. Thank you Ethernet controllerPCI\VEN\DEV_8136 & SUBSYS_3577103C & REV_05

  • Windows 7 driver for printer OKI B2200

    I'm looking for a driver to enable Windows 7 to print from an OKI B2200 printer. I can only find one for Vista which does not work with Windows 7

  • Fallacious rectangles or "glitch" appear when using Camera Raw.

    When I use Camera Raw, I see fake or rectangles 'glitch' appear when using various tools of exposure, the adjustment brush setting, etc.. To work around the problem, I set a tool that I use as an exhibition or a brush until the rectangles disappear,

  • Pins on the map endangered

    HelloI just got back from a trip and try to manually set studs of placement for the various places I've visited in the Lightroom card module. I identify a location on the map and then made drag images selected from the film at the location. It seems