regexp_substr to search a pattern identical to 'De12022015 Se13022015'

Hi guys,.

I have an obligation to get the substring using REGEXP_SUBSTR

create table test (ID number,

text varchar2 (200));

insert into test (id, text) values (1, ' Line1goesHere)

From12022015 To13022015

blablablabla');

insert into test (id, text) values (1, ' Line1goesHere)

From01012010 To30132016

blablablabla');

Select * from test;

IWant to get the start date and date of the second line of text...

Query SQL out put must be as shown below

From12022015 To13022015

From01012010 To30132016


Can someone please advice how to achieve this using REGEXP_SUBSTR

  1* select regexp_substr(text, 'From[0-9]{8} To[0-9]{8}') from test
SQL> /                                                                 

REGEXP_SUBSTR(TEXT,'FROM[0-9]{8}TO[0-9]{8}')
-----------------------------------------------------------------------

From12022015 To13022015
From01012010 To30132016

Tags: Database

Similar Questions

  • You can search a pattern and format the result.

    Hello
    I seek a function that search sequences and formats the output 1-way.
    I tried to do this with regular expressions, but could not succeed.

    My look of entry (projects codes) like this: EL10000, E10010RR, E10020ER.

    Project codes get a different format in the new year:

    EL10000 becomes 10000L 009 or EL patternwise ~ becomes ~ L009 where ~ is a number (10)
    E ~ RR becomes ~ R009 where ~ is a number (10)
    E ~ ER becomes ~ SBC9 where ~ is a number (10)

    Is this possible with regexp_replace in 1 statement or just need I build a function?

    Thanks in advance
    Auke Quist

    There is probably a better way...

    with x as
    (select 'EL10000' proj from dual union all
     select 'E10010RR' from dual union all
     select 'E10020ER' from dual
    )
     -- End of Sample data
    select proj
         , case
             when proj like 'EL%'
             then  substr (proj, 3)||'L009'
             when proj like 'E%RR'
             then regexp_substr (proj, '[[:digit:]]+')||'R009'
             when proj like 'E%ER'
             then regexp_substr (proj, '[[:digit:]]+')||'SBC9'
          end new_proj
      from x
    
  • Generic fields containing wildcards to search?

    I have models that I need to look, and the data * for wildcards.

    I have tons of them but here is a small incision of it.

    The configuration of the field
    10400H6X * 2 *.
    104RD21E * X *.
    104RD2BE * X *.
    109FS091 * X *.


    I need basically for the end user can specify any combo of text to search for

    1*******X********
    104 H *
    34543 *.
    *0*F***1*********
    * 1 * 2 * 5 * X * 4 * 432
    109FS0911X2345678

    So whatever it is they end up typing in, it will search for all models that match.

    I can get things to

    It looks like I'm using the SIMILAR command, which works in most cases, but not all.

    SELECT the model, Info1, Info2, OF pat_Data
    WHERE
    (1 * X *' as replace(Pattern,'*','?')) Or
    (1 * X *' as replace(Pattern,'*','@')) Or
    (1 * X *' as replace(Pattern,'*','_')) Or
    (replace(Pattern,'*','?') ("Like 1 * X *") or
    (replace(Pattern,'*','@') as 1 * X *') Or
    (replace(Pattern,'*','_') "as 1 * X *") or
    ("1 * X *" as a reason) or
    (Pattern identical to 1 * X *')


    This model works in MS access... but does not work in Oracle 10 g.

    [email protected] wrote:
    I have models that I need to look, and the data * for wildcards.

    I have tons of them but here is a small incision of it.

    The configuration of the field
    10400H6X * 2 *.
    104RD21E * X *.
    104RD2BE * X *.
    109FS091 * X *.

    I need basically for the end user can specify any combo of text to search for

    1*******X********
    104 H *
    34543 *.
    *0*F***1*********
    * 1 * 2 * 5 * X * 4 * 432
    109FS0911X2345678

    So whatever it is they end up typing in, it will search for all models that match.

    You are looking for a search generic double face?

    Assuming that "*" means a single wildcard character and the size of the strings are resolved:

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select '10400H6X*2*******' as field from dual union all
      2             select '104RD21E*X*******' from dual union all
      3             select '104RD2BE*X*******' from dual union all
      4             select '109FS091*X*******' from dual)
      5      ,r as (select '1*******X********' as req from dual
      6     union all select '104**H***********' from dual
      7     union all select '***********34543*' from dual
      8     union all select '*0*F***1*********' from dual
      9     union all select '*1*2*5*X*4****432' from dual
     10     union all select '109FS0911X2345678' from dual
     11            )
     12  -- END OF TEST DATA
     13  select r.req, t.field
     14  from t, r
     15  where decode(substr(req,1,1),'*','*',substr(field,1,1)) = decode(substr(field,1,1),'*','*',substr(req,1,1))
     16  and   decode(substr(req,2,1),'*','*',substr(field,2,1)) = decode(substr(field,2,1),'*','*',substr(req,2,1))
     17  and   decode(substr(req,3,1),'*','*',substr(field,3,1)) = decode(substr(field,3,1),'*','*',substr(req,3,1))
     18  and   decode(substr(req,4,1),'*','*',substr(field,4,1)) = decode(substr(field,4,1),'*','*',substr(req,4,1))
     19  and   decode(substr(req,5,1),'*','*',substr(field,5,1)) = decode(substr(field,5,1),'*','*',substr(req,5,1))
     20  and   decode(substr(req,6,1),'*','*',substr(field,6,1)) = decode(substr(field,6,1),'*','*',substr(req,6,1))
     21  and   decode(substr(req,7,1),'*','*',substr(field,7,1)) = decode(substr(field,7,1),'*','*',substr(req,7,1))
     22  and   decode(substr(req,8,1),'*','*',substr(field,8,1)) = decode(substr(field,8,1),'*','*',substr(req,8,1))
     23  and   decode(substr(req,9,1),'*','*',substr(field,9,1)) = decode(substr(field,9,1),'*','*',substr(req,9,1))
     24  and   decode(substr(req,10,1),'*','*',substr(field,10,1)) = decode(substr(field,10,1),'*','*',substr(req,10,1))
     25  and   decode(substr(req,11,1),'*','*',substr(field,11,1)) = decode(substr(field,11,1),'*','*',substr(req,11,1))
     26  and   decode(substr(req,12,1),'*','*',substr(field,12,1)) = decode(substr(field,12,1),'*','*',substr(req,12,1))
     27  and   decode(substr(req,13,1),'*','*',substr(field,13,1)) = decode(substr(field,13,1),'*','*',substr(req,13,1))
     28  and   decode(substr(req,14,1),'*','*',substr(field,14,1)) = decode(substr(field,14,1),'*','*',substr(req,14,1))
     29  and   decode(substr(req,15,1),'*','*',substr(field,15,1)) = decode(substr(field,15,1),'*','*',substr(req,15,1))
     30  and   decode(substr(req,16,1),'*','*',substr(field,16,1)) = decode(substr(field,16,1),'*','*',substr(req,16,1))
     31  and   decode(substr(req,17,1),'*','*',substr(field,17,1)) = decode(substr(field,17,1),'*','*',substr(req,17,1))
     32* order by 1,2
    SQL> /
    
    REQ               FIELD
    ----------------- -----------------
    ***********34543* 10400H6X*2*******
    ***********34543* 104RD21E*X*******
    ***********34543* 104RD2BE*X*******
    ***********34543* 109FS091*X*******
    *0*F***1********* 109FS091*X*******
    1*******X******** 10400H6X*2*******
    1*******X******** 104RD21E*X*******
    1*******X******** 104RD2BE*X*******
    1*******X******** 109FS091*X*******
    104**H*********** 10400H6X*2*******
    109FS0911X2345678 109FS091*X*******
    
    11 rows selected.
    
    SQL>
    

    If that's what you are looking for then you may struggle to do it, even with regular expressions.

    I guess the TYPE clause could easily do this treatment but for different lengths of chains.

  • How can I get video mashups model?

    Hi, I have to do a regular video mashup where I will include four, five minutes of video clips, let them play in the sequence and then show them all in a grid at the end.  I know how to do all the mechanics, but is there an easy way to set up a project so that I can simply 'load' the four videos and they will automatically appear in the order and at the end.  Basically, I'm looking for easier workflows because I'll have to do a lot.  Thank you!!!

    PS Sorry if it is an easy question, but the only brought model search title patterns.

    I'm not sure what our genius resident Colin will come with (glance

    before see that), but...

    What you ask is not too much work at all... Once you've done it once (ie the first time).

    This creates a BASE sequence that can be reproduced or used to paste attributes next time

    Doubt you can 'automate' up to the level you want!

    So:

    You have a default sequence implemented

    You have a default (identical every time opening attached)... it's easy.

    You must file within 3 or 4 clips at the end of the default open.  (30 seconds of work max.)

    You need to do unique 'Legends '.  You must do this manually anyway, but you can speed it up by creating a new title from Existing

    You have a P in the order of P to the end.  T

    his is the slightly slow fuse... but once you put in place the first time, copy the attributes of movement throughout every element of each new sequence. (or just write them and type them in)

    How many of you have to do it anyway?

    I think I could do the first 10 minutes and the subsequent ones in 5.

  • Manage identities does not 'from' addy align with the "sent to" addy when replying

    I just installed 24.6 and used the 'import' of Eudora. Everything seemed to move pretty well, but I can't understand the ' sent to '. I tried in "manage identities", does not. The problem is you answer a list of mail and thunderbird wants to insert my dominant addy instead of the address who sent the original e-mail. It is a problem when the identity must be subscribed/registered.

    He does not do it every time, sometimes it inserts the correct answer "from". Cannot make sense.

    Something to do with the import?

    something to do with where you are in the folder hierarchy.

    This account will be the default SMTP is used when the selected account is unknown, so if you have a list of e-mail account and move them e-mails in local folders to the selected SMTP server will be the value by default, where as if you are in the folder of the account the SMTp response. It goes the same for identities.

    I'm pretty sure that one of these modules will meet your needs https://addons.mozilla.org/en-US/thunderbird/search/?q=identity & cat = all & appver = 24.0 & platform = windows

  • Scale invariant filters

    Is there a way to search for patterns in an image independently a difference of scale between the model and the image under inspection?

    Double post

  • Can I switch from XP 32 bit to 64 bit XP?

    First of all here is my computer: http://tinyurl.com/6sz34dz

    I was wondering if it is possible to upgrade my current 32-bit to a 64-bit. 'AVG PC tune up,' said my computer was able to be 64-bit, but I don't know how to do. Please keep in mind that I am not looking for upgrade to Vista or 7.

    Probably not.  Probably, "AVG tune-up" has looked up the model of your Pentium 4 processor and determined that it supports "Intel 64," which is a 64-bit instruction set.

    You can confirm by clicking Start > run > msinfo32 > OK.  Then look at the "System Summary", especially the "type of system."

    You can also watch a line down the line "Processor" to determine the 'family' and the 'model' and then click here to search for patterns of 3.06 GHz--> http://en.wikipedia.org/wiki/List_of_Intel_Pentium_4_microprocessors I suspect that you have a "Intel Family 15 Model 4" Pentium 4 519 K or less likely a "Intel family 15 model 3" Pentium 4 HT 524 - that support Intel 64. "

    The original Windows XP 64-bit edition runs on Intel Itanium processors.  They use a different architecture than your Pentium.

    In 2005, Microsoft released Windows XP Professional x 64 edition, which was designed to run on processors supporting Intel 64.  Even if you could find a copy of this version of Windows to buy, here is this a Wikipedia article has to say about it:

    There are a few common problems that occur with the Windows XP Professional x 64 edition.

    • Driver compatibility; Mode drivers single core 64-bit are supported. This means that devices for which there is no driver for Windows XP 64-bit can be used. This includes a lot of common equipment; as the readers of CD, DVD and USB drives. The amount of material not supported fell because of the proliferation of x 64 Vista and x 64 Windows 7.
    • Any 32-bit Windows Explorer extension does not work with the Explorer of Windows 64 - bit. Explorer is a 64-bit program, so it cannot load a 32-bit DLL. However, Windows XP x 64 edition also comes with the 32-bit explorer.exe, which can be used as a shell by default of the user with editing the registry.
    • 16-bit programs will not run due to the removal of the 16-bit subsystem Microsoft. As some 32-bit software was shipped with 16-bit installers, these software will not install.
    • Command prompts will not load in full screen. This is also true for Windows Vista and Windows 7 in both 32-bit and 64-bit editions.
    • Does not contain a component Web Extender Client for Web (WebDAV) folders.
    • Some installers refuse to install something else XP 32-bit, even if the product works perfectly on x 64.

    My suggestion?  Wait until you decide that you need a new computer and get with any operating system Microsoft is available.

  • Impossible to use ad groups for authentication RADIUS on ISE 2.0

    I tried following the guide on how to configure ISE 2.0 for peripheral administration GANYMEDE and when I get to the ensembles 'political device admin' the only thing that I can use identiity default user groups there.  It won't let me choose an ad group.  Even if I create a group of identity I'm unable to map a group of ads to it.  Am I missing something here?

    Make sure that you use the box of 3 (left to right) when your state of construction based on ad groups. The 2nd box only searches the internal identity store. Then you will need to click on the 3rd box > create new Condition > Select attribute > AD1 (or whatever you named your connection AD) > external groups

    I hope this helps!

    Thank you for evaluating useful messages!

  • Research of ITS Instance properties

    Hello

    I am trying to configure Oracle Secure Enterprise Search on a PeopleSoft HRMS 9.2 + PeopleTools 8.52.11 system. There is a very nice blog on RemotePSAdmins.com:

    http://remotepsadmins.com/2013/07/02/part-2-PeopleSoft-SES-configuration/

    I am now up to the property page of the search Instance with a successful Ping and Test connection.

    However I can not get a Proxy successful connection with the following error:

    Failed proxy connection: error with IdentityPlugin.validateUser:

    oracle.search.sdk.common.PluginException: javax.xml.soap.SOAPException: Message send failed: sun.security.validator.ValidatorException: building way PKIX failed: sun.security.provider.certpath.SunCertPathBuilderException: could not find the path of valid certification for target asked

    at oracle.search.plugin.security.identity.psft.PsftIdentityPlugin.validateUser(PsftIdentityPlugin.java:334)

    at oracle.search.query.internal.AuthnTask.run(AuthnTask.java:136)

    (262,1317) (262,1318)

    Is this a problem with my chain of SSL certification? I put the SSL option to disable for the moment, it seems strange. It seems to miss some SSL configuration on the domain of ITS Weblogic, but I don't know where to look. The user that I use

    Also, on the same page I can't validate the properties of call-back, always get "Validation failed: Call-back URL does not match the URL of target (262,1313) location", but when I try the URL manually, I get a page showing ACTIVE status. " The URL that I use here is the same as Integration Broker > Configuration > gateways except that I added "/ PSFT_HR" to specify the node.


    Any help is much appreciated, thank you.

    Is your PS env configured and running on SSL?

    If this is not the case, leave the target url of the empty service in PS for SSL configuration.

  • Seamless textures

    I watched a lot of tutorials to create textures without sewing and know that the shift feature should be used, but I'm fighting to remove the 'seams' convincing. The tutorials seem to use the Brush tool or a clone of healing that works very well on availability of bosses like rock/paper/grass textures but not when I'm doing a model egg or onion. I am attaching the picture showing the seams, what would be the best way to go about this?eggsbefore.jpg

    I think you expect too much with a pattern identical to those eggs, but you certainly won't have to make the seam to disappear with the tool editor or clone.  It's doable, but you have a job before you.

    After the application of the offset, you must fix the seam like in my picture below.  Cut the eggs of this or other images and use free transform on each egg to hide the seams, but in view of the edges you need to run from one side to the other.  I placed two new eggs in the example below quick and dirty and have also applied a shadow to help make new eggs to enter the scene.  I'm sure you'll understand what I mean.

    Good luck.  I often say to the posters, but this time I think you'll need.

  • what patch patch 11.1.1.2 to 11.1.1.5 OID number

    Hello
    I'm looking for the number of patch load to go from OID 11.1.1.2 to 11.1.1.5 on Win7 64-bit?
    By documentation
    http://docs.Oracle.com/CD/E21764_01/install.1111/e12002/instps2.htm#BGBGAEDF
    He mentions the file named
    Oracle Identity Management 11g Release 1 (11.1.1.5.0) Patch Set Installer (ofm_idm_win_11.1.1.5.0_32_disk1_1of1.zip (for Windows)

    Support for Oracle, I found the following hotfixes while searching for patch Identity Management Suite:
    14609562
    14760839
    16209876

    Although the name of the file for above is for example p16209876_111150_Generic.zip which does not resemble ofm_idm_win_11.1.1.5.0_32_disk1_1of1.zip.
    Although I'm not sure I should use ofm_idm_win_11.1.1.5.0_32_disk1_1of1.zip because it indictaes the 32-bit, I need the 64-bit version.

    Can someone please clarify where I can find the patch / what is the number of patch?

    Thank you

    Anatoliy

    Anatoliy salvation,

    In fact, if you are looking to upgrade your OID 11.1.1.2 to 11.1.1.5 installation in Windows 7 64 bit, the desired patch number is 12395123. The patch itself is called "Oracle Identity Management 11g Patch Set 4 (11.1.1.5.0) (Group of patches)".

    In Oracle, support, patch 12395123 number search and Microsoft Windows x 64 (64-bit) and you will find the patch you need. I have used this patch several times before upgrading the OID 11.1.1.2 to 11.1.1.5.

    Thank you
    Scott (PITS)

  • Configuration of 8.52 PeopleTools and ITS

    Hi all
    This is a new installation of HIS with the Peopletools 8.52 and HCM 9.1 demo database. With RDBMS Oracle 11.2.0.3.0 (database unicode).
    I downloaded the software delivery and installed a complete installation by using the reference guide.
    http://docs.Oracle.com/CD/E26530_01/PSFT/Acrobat/PeopleTools_8.52_Installation_Oracle.PDF
    Configuration of the integration between PeopleSoft PeopleTools and Oracle SES

    After completing all the steps in the chapter, he failed the audit when executing the peopletools > part search > administration > diagnosis
    It fails in the deployment phase.
    Undeploying. Any previous run of data cleaning
    Cancel the deployment complete
    ---------------------------------------------------------------------------------------------
    Deployment of the search definition
    Caught exception when adding of peoplesoft source ITS failed to connect. Error with IdentityPlugin.validateUser:
    oracle.search.sdk.common.PluginException: oracle.j2ee.ws.saaj.ContentTypeException: not a valid SOAP Content-Type: text/plain; Charset = UTF-8
    at oracle.search.plugin.security.identity.psft.PsftIdentityPlugin.validateUser(PsftIdentityPlugin.java:334)
    at oracle.search.query.internal.AuthnTask.run(AuthnTask.java:136)
    (262 129)



    I saw an article in support 1478247.1 and checked the password are the same in Peoplesoft and the ESS. But still see the error.
    E ITS: get 'Exception detected while PeopleSoft adding Source ITS Login Failed. (262 129) "during the trial round trip [ID 1478247.1]

    Also, I created a SR with Oracle support, because it is not in Production, it may take a few days to address. If someone had similar and solved problems, please answer. Thanls.

    Right after the validation, I realized that the problem was due to a problem with the appointment of the URL

    1. on the side of his, identity management settings for configuring endpoint must be
    http://PeopleSoftWebServer:port/PSIGW/PeopleSoft * Service * ListeningConnector

    2. on the Integration broker--> Configuration--> is the url for gateways
    http://PeopleSoftWebServer:port/PSIGW/PeopleSoftListeningConnector

    3. on the Integration broker--> Configuration-->--> target locations Setup Service Configuration, the URL must be the same as 1
    http://PeopleSoftWebServer:port/PSIGW/PeopleSoft * Service * ListeningConnector

    The URL for 1 and 3 has the word Service in.

    This solves the problem for me. I have updated the case oracle so to reflect this. I hope this will solve your problem as well.

  • How to apply a character Style that has already been made in a document model?

    First of all, I would like to thank everyone who helps. I am a complete newbie to the script and appreciate your help.

    I mainly use GREP expressions to search for patterns in a document and apply a character Style that has already been done. This character style did not help script, but just in InDesign when the production and implementation of the model.

    var myDoc = app.activeDocument;
    
    
    //Clear the find/change grep preferences.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    
    //Set the find options.
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    
    //GREP Expression for finding all HEADERS
    app.findGrepPreferences.findWhat = ".+\n";
    
    //Applying formatting changes to put into All Caps, Bold and changing the font size to 12 pt.
    app.changeGrepPreferences.capitalization = Capitalization.allCaps;
    app.changeGrepPreferences.fontStyle = "Bold";
    app.changeGrepPreferences.pointSize = "12";
    myDoc.changeGrep();
    
    //Clear the find/change preferences after the search.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    

    This is how I currently. I will manually define the changes made to the text. The problem is, each model uses a different set of fonts and not all use them "BOLD", for example Sabon can use THIS "BOLD".

    I would like to know how to apply a character Style and tried to look, but nothing seems to work.

    Any help would be appreciated.

    Thank you.

    app.changeGrepPreferences.appliedCharacterStyle = "A";

  • How can I get a box of width and height that I resize an object in Illustrator CS6?

    In a training video on Illustrator cs6, that a device is shown below, only the instructor manually resizes a work plan using the tool of work plan:

    Image for discussion.JPG

    Justin, the instructor, called the little box that immediately shows width/height a "box of width and height, but the search on this term is not productive. When I run the device program is not available, not only the video explains what option makes available or what could have changed on my copy to hide or disable the box. Even though I know that I can achieve the same effect by choosing the information window and can even adjust settings more precisely using the Control Panel, I would like to have the convenience of this box. Anyone can set up why I'm having a problem?

    I note that the same type of display in the same series of videos (from Lynda.com) is indicated when the instructor resizes an image. After that 30 minutes of research on Google and the search for the identity of this device and how to activate it just empty... can someone point me in the right direction? An experienced editor of first, I'm trying to expand my skills identified in more than Adobe and new to Illustrator. Please forgive me if I'm missing something obvious.

    Thank you

    Jay from the Bronx

    Try searching some guides. The rocker is Cmd (Ctrl) u.

  • Best way to query - filters vs. get() cache?

    Hello

    I'm in a dillemma. Whether to use the methods NamedCache.get () or entrySet (filter) to query the cache. Please guide me...

    My understanding is that when using

    1. get() or getAll(), consistency checks if the entry is in the cache, if it does not exist in the cache, coherence get his from the data store
    2. simply entrySet (Filters), consistency checks the cache, and returns the results based on what is available in the cache.

    In this case, is it not better to use get instead entrySet in a case where we do not know if up-to-date data are available in the Cache?

    1. What is the difference between using a get and entrySet ?
    2. How do we make sure that up-to-date data are available in the cache when the use not a writeback scenario?

    I'm newbie... Gurus, please guide me...

    sjohn wrote:
    Thank you, Robert.

    So the air if I the search parameter is identical to the key, then its better to use get or count with all

    Currently, I have a set of expiry-delay of 1 min on the Cache. So, this extract the expired data from the data store. Are there any trigger to get out of the box of coherence mechanisms?

    I'm not sure that what you call the extraction of trigger mechanism.

    Consistency can make periodic updates cached entries that have recently been consulted within a configurable time thanks to its cooling function in advance. You can read about it at http://wiki.tangosol.com/display/COH35UG/Read-Through%2C+Write-Through%2C+Write-Behind+and+Refresh-Ahead+Caching#Read-Through%2CWrite-Through%2CWrite-BehindandRefresh-AheadCaching-RefreshAheadCache

    If this is not what you're after, would you care to elaborate a little bit on what you need?

    Best regards

    Robert

Maybe you are looking for