REGEXP_SUBSTR - Take part before '*'

Hello everyone,
I was wondering if it is possible to do this with REGEXP_SUBSTR?
WITH T as (
  SELECT 'Hello * The* World!' as str FROM dual)
SELECT trim(SUBSTR(str, 1, instr(str, '*')-1))
  FROM t;Not that I absolutely need it, but it's more a curiosity on how REGEXP_SUBSTR works actually. I would like to retrieve with REGEXP_SUBSTR the first part of a string before a given character, in this case '*'. Is this possible?
Thanks

WITH t AS    ( 1 )       ( 2 )     ( 3 )     ( 4-NULL )
     (SELECT 'Hello * The* World!' AS str
        FROM DUAL)
SELECT REGEXP_SUBSTR (str, '[^*]+'),
       REGEXP_SUBSTR (str, '[^*]+', 1, 1),
       REGEXP_SUBSTR (str, '[^*]+', 1, 2),
       REGEXP_SUBSTR (str, '[^*]+', 1, 3),
       REGEXP_SUBSTR (str, '[^*]+', 1, 4)
  FROM t
Hello  Hello  The World   (Null)Edited by: user2361373 on May 3, 2011 1:55 AM

Similar Messages

  • My i phone 5c wont stop restarting!! sometimes it takes hours before the phone starts working again. Sometimes when it does this red lines go up and down the screen. Im so ready to go back to my 4s does anyone know how to fix this???

    my i phone 5c wont stop restarting!! sometimes it takes hours before the phone starts working again. Sometimes when it does this red lines go up and down the screen. Im so ready to go back to my 4s does anyone know how to fix this??? Should i mention i have tried restarting back to new and i have the most up to date software. Please help

    If the center portion of the monitor is flickering then your GPU on the logic is bad or (unlikely given this symptom) that your monitor cable is pinched/damaged.
    **Imediately backup ALL your important data while you can still see things on the monitor
    Contact Apple for appt. for in shop diagnostics for full examination and for parts replacement
    nobody can give you a cost on a repair that isnt fully diagnosed online and cannot be.
    perform SMC reset just to check:
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 

  • Process order should not take part in MRP run

    Hello Colleagues
    I looking for a way how to exclude not released process orders (we have PP-PI) from MD04 report. Not released process order should not take part in MRP run. I was trying to do it using OPJJ for availability check 02 and checking rule PP but I was not able to get result. Could you please help, probably there are other settings?
    Best Regards
    Eduard

    Hi,
    Settings in OPJJ will take effect only when you create or release process orders.
    As a work around you can try to exclude process order is
    1. Create a Storage location and make it not relevant for MRP-OMIR
    2. In Material master for the material in MRP assign storage location MRP as 1 (exclude storage location stock)
    3. Create the process order, in the GR tab enter the storage location (not MRP relevant)
    In the MRP run it will not take the process order into account.
    After releasing change the storage location to the normal sotrage location.
    In this process flow, the control is with the storage location.
    Check it in your sandbox.
    Thanks,
    JK

  • How to take parts of a web page and feed into a PDF template to create a PDF

    Interesting quesiton that I think was what LiveCycle was for: How can someone take parts of a web page or xml document (say by id name or a specialized tag) and feed the chosen items into different regions inside a PDF template?
    Basically, can you identify areas on a page and then tie them to place holders in a pdf template (with high res graphics say) and create a PDF?
    Please note: this is not about converting a whole webpage to a pdf, but select portions of it.
    Anyone have experiences in doing this? So far, it appears to require a toolset like LiveCycle or Adlib to utilize only selected items and not the whole page.

    The lack of answers is likely due to folks having no clue. What you have asked is not really the purpose of either Acrobat or LiveCycle, but that is not to say it can not be done. A starting point is to bring a WEB page into Acrobat as a PDF. This can be done by printing from the browser to the Adobe PDF printer, using PDF Maker with IE or FIrefox, or simply creating directly in Acrobat. Those are the normal ways to get things from a web page to a PDF.
    That said, it is not what you asked. You are asking about being able to parse parts of the web page. That is a lot more work and may not be directly possible, though with JavaScript it might be possible. I suspect that if it is possible you would require a lot of extra programming to allow the material selection. It may be the folks in the SDK sub-forum can help.
    Being I have no clue how to implement what you have asked (and probably no one else either), I can only suggest some things to look at or other places to inquire. If you think the XML of LiveCycle would help, then you might try the LiveCycle forum.
    In terms of your post, I really don't remember seeing the original, but that was right near the end of the semester and I was not checking the forum very much. There are various reasons folks may not reply, typically because they have no clue. Templates are also somewhat specialized and there are not many posts about them. My guess is that the template aspect may have had a lot of folks skip the post. In any case, I have tried to give you some thoughts.

  • Accounting Entries when Invoice Verification takes place before GR

    Hello All,
    I have some difficulty in understanding the accounting entries when Invoice Verification takes place before Goods Receipt.
    The scenario is as below: - (It is taken from one of the SAP documentation - AC530 - Actual Costing & Material Ledger- pg.No.2-8)
    1) Stock of material available u2013 50 units / Value Rs.125 /Moving average price in the material master Rs.2.50 per unit
    2) Invoice receipt takes place before goods receipt u2013 100 pc @ Rs.4.00 pc
    3) System does internal stock coverage check. As per SAP document, the stock shortage is 50 pieces.
    4) So the price difference arise i.e.Rs.100 (How this amount is arrived at? u2013 Not understood)
    5) The price difference of Rs.100 is only partially debited to the material (Rs.50). The rest is posted to price difference account (Rs.50)
    The accounting entry u2013
    GRIR A/c Dr                      300
    Inventory A/c Dr.                 50
    Price Diff. A/c Dr.                50
    To Vendor A/c                   400
    Question u2013
    -     I have not understood how Rs.100 is calculated & on what Moving average price the calculation takes place.
    -     As per the calculation in the document, the moving average price of the opening stock is Rs.2.50.the stock is 50  units. (50*2.50=125)
    -     The Invoice receipt happens at 100 pcs @ Rs.4.00 (100*4=400)
    -     So the new moving average price will be Rs.3.50 (Rs.125 + {100*4=400})=Rs.525. Rs.525/(100+50)pcs = Rs.3.50
    -     So how the price difference & posting to Stock account is calculated in the accounting entry?
    Please help,
    Thanks & Regards,
    Gov

    Hi,
    Check below mentioned thread to understand posting to price difference account..
    Logic of price difference  posting
    you missed one aspect of this and that is PO qty and PO price.
    GR/IR will get debit at IR Qty * PO Price.
    rest all calculations are in the link provided..
    - So the new moving average price will be Rs.3.50 (Rs.125 + {100*4=400})=Rs.525. Rs.525/(100+50)pcs = Rs.3.50
    Moving avg. will be calculated on stock value / qty in stock. new MAP will be stock value = (125 +50) = 175 and stock qty = 50 units so MAP will be 175/50 = 3.5.
    Since, GRN has not been done yet stock value (100*4) will not be there..
    Regards,
    Sayujya

  • How can i take parts of an attachment/file....and create a "sub" file?

    I am trying to reduce the size of an attachment/file.  I am wondering how to take parts of one file and create a new (smaller) file?

    I think you're using the wrong terminology here.  A "folder" on your computer is a folder, not a file (even though it looks like a file folder like in the real world).  A "file" on your computer is just that, a singular file be it a Word document, picture file, PDF of something, Excel file, whatever.
    That said, if you're trying to email a folder to someone, you can't do that.  Email attachments cannot be a folder (i.e. a directory container of multiple files).  To separate different files in different folders, you simply drag whatever file you want into whatever folder you want, but you still won't be able to just email the split up folders because it doesn't work like that.
    What you need to do if all the files together are too big to send is to first try to zip them all up.  Find the folder they're in and select all the files by clicking and dragging a selection square around all of them with your mouse.  Once you've done that, right click on one of the selected files making sure you don't accidentally deselect all of them and compress them off the context menu that comes up.  The new zip file that's created will contain all the files you just compressed into it.  You can then email this one singular zip file and the receiver will just uncompress it and see all the files you have in it.  If you have multiple file groups you want to do this with, you can do the same steps for those selections.  There's no right or wrong number of files you can zip together, the gotcha is that if your initial issue was that the email attachments were too big, you'll need to figure out what grouping to do to make everything small enough.  The Word documents will compress the most since it's just text.  The PDFs and picture files the least (if you also have those kinds of files you're dealing with).

  • How to avoid purchase req and stock transport order to take part in MRP.

    Please suggest how to avoid purchase req and stock transport order to take part in MRP.

    hi,
    check the settings for the MRP type...there you need to show which doc will be taken into considerations...
    SPRO >> MM >> CBP...
    Under CBP check for the MRP settings where it is placed(check under master data settings)...and check for the indicator for PR's and STO's release orders under tab "Additional external req. in the reorder point planning"..
    Regards
    Priyanka.P

  • BI 11G : logging in into reporting services takes minutes before landing

    All,
    logging in into em/console works relatively fine....but when I want to log in into analytics...it takes minutes before I'm logged in.
    I have the same problem when I want to log in into Administrator or Catalog manager (online)
    Installation is on Linux (32bit) - client tools on windows.
    At this moment I have no clue what can cause this problem. Anyone already noticed the same issue or has some good tips?
    Txs!!
    A.
    Edited by: ADB on 19-okt-2010 5:34

    Hej Nico,
    it was a pretty stupid one...
    I migrated my rpd...and didn't change the connection pool settings correctly to point to my new db.
    That was already a problem of course ;-)
    And because I had some initialization blocks defined in the rpd, it took a while before they turned an error....
    and that was the reason why it took such a long time before I could log in into the reporting environment or a client tool.
    Once I had disabled the init blocks, it was no problem. And after I changed the connection pool correctly everything was solved.
    Hope things are more clear now.
    Txs,
    A

  • Virtual chars does not take part in update rules

    Hi
    Friends my question is Virtual Chars Does not take part in update rules than why to include it in data target??? directly we can include it at query designer .
    Thanks
    Asim

    Hi,
    Adding a charachteristics is to have a place holder in your data target. In virtual char you make use of this field memory pointer to populate the data for this field.
    Hope this helps for you.
    Thanks,
    Arun

  • I am a student and would like to take part of student edition. I'm graduating in June, I will be charged with the full amount of time or for student price for 12 months?

    I am a student and would like to take part of student edition. I'm graduating in June, I will be charged with the full amount of time or for student price for 12 months?

    Carine17088327 which Student and Teacher edition are you referring to?  This forum is primarily regarding perpetual version of Adobe Creative software which included a discount for education users.

  • I want to take part of an image in a photo

    I am wanting to take part of an image in a photo & put it on part of an image on another photo.
    How do I do this?

    Layering and masking.
    Here's a video tutorial that can help understanding:
    Masking Basics in Photoshop CS5 | Adobe Evangelists - Russell Brown | Adobe TV
    -Noel

  • Take part 1 and part 2 both entries after grn

    dear guru's,
                   i have done migo 101 but not taken excise part1 and so not able to take part 2 also so can u pls teel me how to take part1 and 2 after grn
    regards
    ujwal

    Hi,
    Steps to capture excise invoice after GRN
    1)Capture the Excise Invoice through J1IEX_C.
    2)Update the Part1 through J1I5(if required)
    3)Post the excise invoice through J1IEX_P
    4)Update registers through J2I5
    5)Get the print out by J2I6
    regards,
    sujit

  • Take part in our Wi-Fi survey and have the chance ...

    Hi Everyone
    I wanted to let you know about some research that BT is conducting around Wi-Fi that I thought you might be interested in.  You have the opportunity to be part of this research and to say thanks for taking part there is the chance to win an iPad 2 or tickets to an Arsenal v Man City football match!  For more details about this research and how to take part, read on below...
    Thx
    Kerry
    BT has a rapidly expanding network of over 3 million BT Openzone and BT FON hotspots, offering free unlimited access to BT Total Broadband customers.
    To improve the service that BT offers, we want to gain a better understanding of when people are within range of BT’s Wi-Fi coverage.
    If you have an Android smartphone then we need your help. We are looking for volunteers to run our survey application on your smartphone for up to four weeks as you go about your normal daily routine. We are hoping for a representative sample of volunteers across the country.
    As a thank you for helping us, volunteers who run the application will be entered into a prize draw, with a first prize of an Apple iPad 2, and second prize of a pair of tickets to the Arsenal versus Manchester City game on Saturday 7th April 2012.
    Click here to find out more about how to take part and the information we are gathering.
    Retired BTCare Community Manager - StephanieG and SeanD are your new Community Managers
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

    You have to enter the correct password to connect.
    Ask the person who setup the router for the password.

  • Hello to everyone. I get a lock surrounded by an arrow in the part before the battery icon

    hello to everyone. I get a lock surrounded by an arrow in the part before the battery icon, I can not turn the display screen to write or see internet, I would not have to restore the Ipod.Help me please

    Your orientation lock it switched on. To turn off do this: Open the multitask bar by double clicking the home button, swipe from left to right until you see the lock icon next to the play controls. Tap on it to unlock and close the multitask bar again by clicking the home button.

  • Which  variables will not take part at the time of object seralization

    could any body tell me which variables will not take part at the time of object seralization

    -transient
    -non serializable class (basic class like String is ok)

Maybe you are looking for

  • How to search for specific match from an array?

    Hi Mike, Thanks for the reply. I am reading a position of switches whether ON/OFF. It is nothing but the digital inputs status from the field. I am Indexing that array, and connect it to the LED indicators to show the relevant status. Also I want to

  • App.refresh bug in CS5???

    Hi, I have this sample script: #target photoshop app.bringToFront(); var dlg = new Window('dialog', 'test'); w = dlg.add('button', undefined, 'cm1',{name:'ok'}); var docRef = app.activeDocument; w.onClick = run; dlg.show(); function run()    docRef.a

  • Updating date/time

    I want to be able to update the value of a datetime field in ms sql server to a future date/time. e.g. if a bidder is placing a pre-auction bid 3 days before the auction starts i want to change the date & time of this bid to 1 minute before the aucti

  • BAPI for General Ledger Accounting.

    Does anyone knows if a BAPI or function that can create and posts documents for GL (general ledger accounting) exists? I have been looking on the BAPI explorer but I'm not sure is one of the Bapi's listed under GL can do that. I wrote a program using

  • Object Imported from Illustrator Changes When Rendering

    I am creating a page that can be seen here: http://www.jalc.org/springswing2010/ The problem is, when I import the lightning bolt from Illustrator into Flash, the two pointed corners in the lightning bolt are sharp and pointed.  However, after render