Can i know about logic framed to get output using the Regexp?

Hi ,
I am now only studing the working concept of Regexp. I had seen best solution from Mr. Blus. Can i know how it is working. I need that logic of wild cards functionality in Regexp Matching sting (wild card Matching string).
SQL> ed
Wrote file afiedt.buf
  1  WITH test_data AS (
  2  SELECT 'c:\temp\folderA\fileA.txt' t FROM DUAL UNION ALL
  3  SELECT 'c:\temp\fileA.txt' t FROM DUAL UNION ALL
  4  SELECT '\\mymachine\A\fileB.txt' t FROM DUAL UNION ALL
  5  SELECT '\\mymachine\A\B\fileB.txt' t FROM DUAL UNION ALL
  6  SELECT '\\mymachine\A\B\C\image.jpg' t FROM DUAL UNION ALL
  7  SELECT '\\mymachine\A\B\C\D\music.mpg' t FROM DUAL UNION ALL
  8  SELECT 'c:\myfolder\folderD\folderE\4969-A.txt' t FROM DUAL
  9  )
10  select regexp_replace(t, '^.*[\]([^\]*)[\][^\]*$','\1')
11* from test_data
SQL> /
REGEXP_REPLACE(T,'^.*[\]([^\]*)[\][^\]*$','\1')
folderA
temp
A
B
C
D
folderE
7 rows selected.
SQL>Please help me in this regards.
Kanish

Kanish wrote:
One more question what is the mean of
The final '\1' in
select regexp_replace(t, '^.*[\]([^\]*)[\][^\]*$','\1') kanishthis is a back reference.
see here:
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_regexp.htm#CHDHCIGH
and in the middle of the table here:
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_regexp.htm#CHDIEGEI
Matches the nth preceding subexpression, that is, whatever is grouped within parentheses, where n is an integer from 1 to 9. The parentheses cause >an expression to be remembered; a backreference refers to it. A backreference counts subexpressions from left to right, starting with the opening >parenthesis of each preceding subexpression. The expression is invalid if the source string contains fewer than n subexpressions preceding the \n.
Oracle supports the backreference expression in the regular expression pattern and the replacement string of the REGEXP_REPLACE function.
The expression (abc|def)xy\1 matches the strings abcxyabc and defxydef, but does not match abcxydef or abcxy.
A backreference enables you to search for a repeated string without knowing the actual string ahead of time. For example, the expression ^(.*)\1$ >matches a line consisting of two adjacent instances of the same string.
As explained in Table 4-2, back references store matched subexpressions in a temporary buffer, thereby enabling you to reposition characters. You access buffers with the \n notation, where \n is a number between 1 and 9. Each subexpression is contained in parentheses and is numbered from left to right.

Similar Messages

  • How can I know about the latest updates / versions which when available for all the CC products, without having to install and check it with the Desktoip Creative Cloud Application ?

    How can I know about the latest updates / versions which when available for all the CC products, without having to install and check it with the Desktoip Creative Cloud Application ?

    Thanks for looking into this Jeff!
    I work with an Inventory module software and is responsible for software detection across several computers. Once an updated version comes up, I update our database with latest software details to get it detected if installed on any machines.
    The problem tracking updates with Desktop Creative Cloud Software are;
    1)We have to have it installed with the CC applications in-order to get the notification of the latest updates and have to check everyday.
    2)Only relates to the latest updates, so in-between we may miss a prior update unknowingly.Hence, the remote machines having those updates may not get  detected with the software version update which would create problem in reporting.
    3)For all CC products, there is no base or previous updates available for installation if we miss one.
    I went through the Adobe Products Update pages [Product updates] which holds good when it comes to Acrobat and Reader software which I follow to track down any newer updates but this is inconsistent when it comes to CC products like in After Effects CC, Dreamweaver CC etc...
    So overall to be very specific, is there any one channel I can follow to get the notifications only for the updates on CC products and then may be I can rely on Desktop Creative Cloud for installation if not available anywhere like in product update pages of Adobe ?
    Regards,
    Subrat

  • How can i know about any users who log on sap last one month..all data and

    Dear all,
    how can i know about any users who log on sap last one month..all data and  transaction code they used in a month.
    Regards,
    ASHUTOSH
    9891595497

    Dear Ashutosh,
    I think your question is in the wrong forum. This is for SAP MDM related questions and answers. SAP MDM does not use Transaction codes. So you may not get much help here.
    Please try posting your question in the ABAP forums and you may get the right resources to help you.
    Thanks.
    Siva K.

  • How can i know my logic pro 9 is for 3 install's?

    how can i know my logic pro 9 is for 3 install's?

    Logic Pro 9 (the DVD version) can be installed on a notebook and a desktop (2). The Mac App Store products can be installed on all Macs that you own. If you need a volume license (e.g. for a school) you should contact Apple.

  • How can I complaint about an app and get my money back?

    How can I complaint about an App and get my money back?

    First Contact the Developer of the App.
    If necessary...Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • I have monthly subscription app how can i know about who cancel subscription ? and how i can calculed the monthly revenue ?

    i have monthly subscription app how can i know about who cancel subscription ? and how i can calculed the monthly revenue ?

    Apple20141 wrote:
    Or open sim tray and find out the carrier ring the carrier and give them numbers on sim
    The carrier will not give out information about the owner of the phone.

  • I have monthly subscription app how can i know about who cancel the supscription ?

    i have monthly subscription app how can i know about who cancel subscription ? and how i can calculed the monthly revenue ?

    Apple20141 wrote:
    Or open sim tray and find out the carrier ring the carrier and give them numbers on sim
    The carrier will not give out information about the owner of the phone.

  • Will this app allow me to draw on the slides in the middle of presentation?  Also can I fill out a contract and get signature at the end?

    Will this app allow me to make a new slide in the middle of presentation?  Also can I fill out a contract and get signature at the end?

    IF youre talking about Keynote, I dont think any of the presentation software options allow you to "Add a slide" during a presentation.
    Since your posting this in the iOS folder of the forums, we can assume further that you are using an iPad or iPhone as the presentation device. In that case, if you tap and hold on a slide during a presentation, you are offered a pen pallete that you can draw on the slides with, but once you hit "Done", it disapears.
    As for the Contract, again nothing i know of allows you to do that directly from within the presenation.
    Jason

  • I can not re install Adobe Acrobat 7.0 professional on my computer.  It is saying a qualifying product is not detected. I cant even get through using the customer service line they provide 800-272-3623.  This is the worst interactionI have ever had with a

    i can not re install Adobe Acrobat 7.0 professional on my computer.  It is saying a qualifying product is not detected. I cant even get through using the customer service line they provide 800-272-3623.  This is the worst interactionI have ever had with a company.

    Hi joej49728017,
    I am so sorry for the inconvenience caused. However this is just because Adobe Acrobat 7.0 is an outdated version & the now the activation server for it does not exist.
    Please refer to the following KB doc.  Error: "Activation Server Unavailable" | CS2, Acrobat 7, Audition 3
    The above link will help you to  install a special version that does not require activation.
    In case you further need any help, please let us know. We will be more than happy to help you.
    Regards,
    Aadesh

  • I've recently changed my password on my e-mail account and now I can't share i photos instead I get a message The email server didn't recognize your username/password combination. How do I change it in i photo pls

    I've recently changed my password on my e-mail account and now I can't share i photos instead I get a message The email server didn’t recognize your username/password combination. How do I change it in i photo pls

    I'm trying to email from iPhoto

  • Can I re install logic after I purchased it  from the app store?

    can I re install logic after I purchased it from the app store? They say you can, but it won't allow me. Finally got logic pro 9 loaded. I recorded a test session,saved it,closed logic and when I went to re open logic the next day. My Logic icon was different ( it was the application icon not the silver record icon ) and I am unable to open my session or go to the app store to re install it. I can't find logic pro anywhere in my folders other than the application icon and that won't open.

    anybody answer me fast

  • If I pre-order the iPod touch 5th generation, do I have to pay it with credit card or can i pay it when i go get it on the store? if I pre order it, can i go pick it up form 1-3 of october, or it is not available?

    if I pre-order the iPod touch 5th generation, do I have to pay it with credit card or can i pay it when i go get it on the store? if I pre order it, can i go pick it up form 1-3 of october, or it is not available? and they send it to the store i want to?

    Hey Sierra, You can do just what you have stated. My question, what is your "other"? If it is over 1.5 GB you most likely have corrupt files. Doing a Restore to New, Factory restore should correct it. Just make sure you make a full backup of all information on your iPod to your computer before you restore, so you don't lose your stuff, contacts, videos, pictures, non-iTunes music, etc, use the cable and connect with your computer. Then, via cable, connect to your computer, run the Restore to new, don't use your backup. Treat this iPod as if it was your first one ever. When restore is done, set up and add what info you wish to install on this iPod. The music apps etc you purchased should be on your computer, if not you should be able to retrieve purchased apps and music from iTunes. Any music, videos, apps not purchased from iTunes will be lost to you if you do not save them to your computer or the cloud first. When your done, make a current Backup and you should good to go. Hope this helps. Good luck. Cheers.

  • Gpib GET command using the GPIB ActiveX Control

    Is there a way to trigger multiple instruments via the gpib 'GET' command using the GPIB activeX control for Visual Basic?

    Hello,
    I'm a bit confused as to what GET command you are trying to use. Where is this command located? Also, what are you trying to accomplish through use of this function?
    GPIB can control multiple instruments through the activeX control for Visual Basic. More information about specific commands can be found in the help files. On your Desktop, click [Start]>>[All Programs]>>[National Instruments]>>[NI 488.2]>>[NI 488.2 Help]. Now, under the "Contents" tab, click [Contents]>>[Multiple Device NI-488.2 Calls]. A list of multiple device function calls can now be referenced for help in performing your desired action within Visual Basic.
    I hope this helps. Please let me know if I can further assist you.
    Best Regards,
    Joe Des Rosier
    National Instrument
    s

  • I can disable one of my MacBook's two CPUs using the CPUPalette application.  How can I do it under control of a script?

    I can disable one of my MacBook's two processors using the CPUPalette application.  How can I do it under control of a script?
    I want to do this because the MacBook is overheating.  I will soon get it repaired, but in the meantime, disabling CPU 2 is effective at preventing overheating.  Sadly CPUPalette is not scriptable, and it won't remember its setting after the computer is restarted.
    Would it be worth learning about the relevant Darwin API (supposing there is one) and writing a small command-line program for the job?  I am an experienced developer of software using Standard C.
    Comments appreciated.
    Dave

    i wonder if there is a key that is stuck cause whenever i try to turn it on again after the 60 minute lockout, it says that the password was incorrect and i am locked out for another 60 minutes

  • Logic Pro quit unexpectedly while using the Altiverb 7 plugin.

    Ever since I upgraded to the Altiverb 7, I'm getting this message: "Logic Pro quit unexpectedly while using the Altiverb 7 plugin".
    Sometime I have to restart the Logic twice or more times.  Even when Logic finally opens it takes about 30-45 seconds before it becomes functional - as it's loading the AUs.  I have never experienced this with the Altiverb 6. 
    And yes... I asked the Altiverb people as well.
    Thanks.
    J.

    Are you using 10.7.5 as your info line states?
    If so, see if you need this supplemental update.
    http://support.apple.com/kb/dl1599

Maybe you are looking for

  • Report Script issue

    Hi, Is it possible to create a Report Script that would export Period data (jan, feb, ... dec) condition being that the start period is a subvar. Eg. from &FcstMonth to Dec, where &FcstMonth is Aug. Regards Leo

  • Material division in Intercompany STO Invoice

    Hi All, We have Intercompany STO scenario with Billing.However when we create an Invoice with the delivery created for an intercompany Purchase order the division in the line item of the invoice shows 00( cross division) and not the division of the m

  • Translat.ini File

    We are upgrading RP11.3 to RP11.5. We have a number of custom rules that have been merged into 11.5 batch system. The issue we are having is that after we merged our custom error messages for our custom rules into the translate.ini file, the system i

  • [svn] 4793: Fix bug SDK-17734 Path with width and height set different than path data has incorrect bounds

    Revision: 4793 Author: [email protected] Date: 2009-02-02 11:20:06 -0800 (Mon, 02 Feb 2009) Log Message: Fix bug SDK-17734 Path with width and height set different than path data has incorrect bounds Fix: When calculating the bounds position we shoul

  • Export slide show to flash drive?

    Hello, and thanks in advance for any help you can give us. My wife and I are new to computers so this is probably a simple question with an obvious solution. She has composed a slide show set to music and we would like to download it to a flash drive