How pervasive is this regex bug?  Is there an official bug ID?

Oracle has a bug in their regular expression handling in 10g 2 and 11g 2. Is this bug also in XE? If so, does it have a bug number I can reference? I don't have support, I'm just evaluating Oracle Database offerings for our company.
The bug: With 10g 2 Oracle released support for non-greedy quantifiers in regular expressions. See http://docs.oracle.com/cd/E11882_01/appdev.112/e25518/adfns_regexp.htm#autoId6
However, it has bugs.
SQL*Plus: Release 10.2.0.5.0 - Production on Tue May 28 22:20:07 2013
Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
SQL> select regexp_substr('foo, bar, qux,','.*b.*?,') from dual;
REGEXP_SUBSTR(
foo, bar, qux,
SQL> select regexp_substr('foo, bar, qux,','.*?b.*,') from dual;
REGEXP_SU
foo, bar,and same results on SQL*Plus: Release 11.2.0.1.0 Production. This is obviously a bug. One can argue about the differing possible interpretations of the sequence `.\*?`, but there is nothing that suggest `b.\*,` shouldn't pick up `qux`. I have a dozen other examples if you want. So my question is that since this has been a bug in released production code for over a year, is there a bug/defect number I can use to track it's eventual resolution? I don't have a support contract to ask support directly because I'm just evaluating right now. I'm trying to push for Oracle but bugs like this make it hard for me to use the argument that Oracle is relatively bug free.
Fixed * interpreted as markup

Oracle has a bug in their regular expression handling in 10g 2 and 11g 2. Is this bug also in XE?If a bug exists in Oracle Database 11.2.0.2, it's very likely to exist in 11.2 XE as well, as 11.2 XE is based on that version.
and same results on SQL*Plus: Release 11.2.0.1.0 ProductionThis is no matter of SQL*Plus, as this is only the client, while the query you execute is processed by the database you're connected to.
Despite that, I wonder how it comes you have SQL*Plus 11.2.0.1.0 on your machine, because XE ships with 11.2.0.2. But this has no impact on your issue...
but there is nothing that suggest `b.*,` shouldn't pick up `qux`. I'm not sure about that. It's a question of where your "preceding" definition ends and how you interprete the documentation. See the differences (or no difference) when using subgroups to separate greedy and nongreedy operators explicitly, e. g.
select regexp_substr('foo, bar, qux, ','.*?(b.*,)') from dual;
-- or even
select regexp_substr('foo, bar, qux, ','(.*?b)(.*,)') from dual; return foo, bar,, which would fit the "first string to match" strategy documented for regexp_substr.
On the other hand, you could enforce the behaviour you seem to expect with making the greedy subgroup explicit.
select regexp_substr('foo, bar, qux, ','.*?b(.*,)') from dual;
-- or
select regexp_substr('foo, bar, qux, ','(.*b)(.*?,)') from dual; will return your complete string.
Of course, you can always argue on whether you should "reuse" characters for different groups when evaluating the regex. From my personal experience, using explicit subgroups helps structuring (and understanding) your regex and makes moving through different implementations easier...
I'm trying to push for Oracle but bugs like this make it hard for me to use the argument that Oracle is relatively bug free.This is mostly a point of view, as your "relatively" indicates...
-Udo

Similar Messages

  • Can someone please help. I have a really old MacBook that is running really slow. I want to wipe everything and reinstall the latest software but don't know how to do this. Also is there a way of keeping Microsoft Office when doing this? Thanks in advance

    Can someone please help. I have a really old MacBook that is running really slow. I want to wipe everything and reinstall the latest software but don't know how to do this. Also is there a way of keeping Microsoft Office when doing this? Thanks in advance

    You do realise that wiping the disk means that everything on the disk is erased. Everything. Photos, music, emails, ...
    So the first piece of advice is to make sure you have a back up of everything.
    You need the OS disk to reintsall the operating system. You will use that disk first to erase the drive, then to reinstall the OS.
    Here's the link for the US.  http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    As for MS Office, you will need the original disk that it came on to reinstall it.

  • Downloaded and installed os x yosemite and now mac book pro will not restart? How long should this take? Is there something wrong? Please helpthanks in advance

    MAc book pro. I have downloaded and installed os x yosemite now mac book pro will not start? How long should it take? Is there something wrong?

    The 2 computers here took about 45 minutes to an hour each.
    The best thing to do is give it more time. If it gets too ridiculous, shutdown using the power button and then restart. Check  menu/About This Mac to see if it is installed.

  • Official bug number for regex bug?

    Is there an official bug number for this regex bug?
    SELECT regexp_substr('foo, bar, qux,', '.*b.*?,') FROM dual
    returns "foo, bar, qux," instead of "foo, bar," in Oracle 11g R2.
    Note that this is definitely a bug, as
    SELECT regexp_substr('foo, bar, qux,', '.*b.{0,}?,') FROM dual
    correctly returns "foo, bar,"

    SQL*Plus: Release 10.2.0.5.0 - Production on Tue May 28 22:20:07 2013
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    SQL> select regexp_substr('foo, bar, qux,','.*b.*?,') from dual;
    REGEXP_SUBSTR(
    foo, bar, qux,and
    SQL*Plus: Release 11.2.0.1.0 Production on Tue May 28 22:16:52 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    SQL> select regexp_substr('foo, bar, qux,','.*b.*?,') from dual;
    REGEXP_SUBSTR(
    foo, bar, qux,

  • Reporting Services will not automatically use a different replica for the report server databases when a failover occurs. How to overcome this issue

    Reporting Services offers limited support for using AlwaysOn Availability Groups with report server databases. The report server databases can be configured in AG to be part of a replica; however Reporting Services will not automatically use a different
    replica for the report server databases when a failover occurs. How to overcome this issue? is there any workaround for that..
    Rahul

    Hi.
    With the AlwaysOn listener you should have a single DNS name to connect to regardless of which cluster node is active. Are you using the listener service? If not, please refer to the link below.
    http://msdn.microsoft.com/en-us/library/hh213417.aspx#AGlisteners

  • I have been sent an email saying my podcast was accepted and will be up on iTunes in a few hours. That was 5 hours ago. How long should this process take?

    I have been sent an email saying my podcast was accepted and will be up on iTunes in a few hours. That was 5 hours ago. How long should this process take?

    There's no fixed time. If it's been accepted - presumably you've been given a URL? - it should appear reasonably soon. However it can dake some days before it turns up in the search results. The podcast image, if you have one, may also take some days to appear.

  • I bough a new imac, this haven't dvd burner, i bought a external dvd burner but the imac havent a idvd and i need this program, no other one, how to download this and install?

    i bough a new imac, this haven't dvd burner, i bought a external dvd burner but the imac havent a idvd and i need this program, no other one, how to download this and install?

    Hi
    how to download this and install?
    There are no free DownLoads !
    There are no legal DownLoads at all !
    If there is no iDVD on Your Mac (and it's not on newer Macs as Apple discarded it) then You need a program that can do this.
    Your Mac can burn CDs and DVDs - BUT DVD as Data-DVDs not as Video-DVDs - they need a program to be encoded and STRUCTURED as such.
    • iDVD is part of the boxed version of iLife'11 and can only be bought outside Apple as on Amazon and e-bay
    • DVD Studio pro - Part of FinalCut Studio Pro bundle - this to has expired and can only be bought second handed. (High price and tough learning Curve - but best ever done.)
    • Roxio Toast™ - Not as elegant as iDVD - but has many other positive additions (I like it as 10-Pro incl BD-component) (now version 11)
    • Burn - only free alternative I know of on internet. Very simple - Just for doing a plain Video-DVD
    Burn http://www.digital-digest.com/software/Burn.html
    only You can buy from Apple is
    • FinalCut Pro-X which also can burn to DVD but without any nice themes.
    AppleMan1958
    You can also buy Compressor from Apple for $50 US. It will also create DVD and BluRay but without the nice themes.
    Yours Bengt W

  • I have just purchased Premier Pro - I have been waiting to down load it but it says it is still processing my order? how long does this take?

    I have just purchased Premier Pro - I have been waiting to down load it but it says it is still processing my order? how long does this take?

    Hi There,
    We have checked the details for your account, your subscription is activated.
    Kindly download the product using the below mentioned link.
    Creative Cloud Help | Install, update, or uninstall apps
        2. If you face any trouble kindly check.
    Troubleshoot Creative Cloud download and install issues
    Error downloading and installing Creative Cloud application
    Thanks,
    Atul Saini

  • The screen could not rotate automatically while without lock it, how to solve this problem?

    The screen could not rotate automatically while without lock it, how to solve this problem?

    If there isn't a lock symbol at the top of the screen next to the battery indicator then try a soft-reset and see if it rotates after the iPad has restarted : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • There is a bug in FF 14,15,16 (I believe all 3) regarding mousedown x/y in an SVG canvas area. Please advise how to report this and have someone fix it.

    I am a web developer. The bug is in latest versions of FF however works fine in previous versions 6-9 (I believe), IE,Chrome. Please go to http://partybannerman.com/svg2/svg-editor.php?id=108&catid=35&wch=MXx5
    Select the number 7 with the arrow tool. Observe the location of the cursor
    Click-drag the selection and closely watch the cursor.
    The cursor no longer is in the same relative position. relative to the object selected.
    This is particularly annoying when zoomed into the "7".
    The precision is necessary for commands that we are implementing that require the cursor position relative to the object selected to be exact.
    Please advise, and thanks for your help

    Not entirely sure I follow your instructions. One thing I do note is the initial starting position of the "7" differs when I compare Firefox (17 or 10) with Chrome. Is that relevant ?
    I wonder if part of the difference may be in how differing browsers cope with the code. I am not a developer and do not know how relevant this is but I note if I try the validator http://validator.w3.org/unicorn/ it is returning some errors.
    If you do think there is a bug try to make a simple test-case that demonstrates this and post in [https://bugzilla.mozilla.org/ bugzilla]. If this appears to be a regression it would be handy to pin it down at least to a particular Firefox version, although users should not now be using Firefox 6-9. (Drill down from [https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/ here] if you need an old version of Firefox to run tests with)
    Someone more knowledgeable may provide further information, or if you need advice on troubleshooting coding issues you may find this forum useful http://forums.mozillazine.org/viewforum.php?f=25

  • Hi, I got an Error 23 when trying to restore my phone. Apple support centre says its a hardware issue without doing anything to come to this conclusion. They will not tell me how to escalate this case. Please let me know if there is a way to escalate.

    One day when tried to restart my iphone 4, I got a screen asking me to connect to itunes. Itunes asked me to restore my phone. When I tried to restore, I got an Error 23 saying it cannot be restored. I tried the phone support. They asked to contact the service centre. I then tried the service centre guys. They clearly did not know what Error 23 was. They asked to contact the apple support again. After 2-3 guys tried to blow me off saying it is a hardware issue, I asked for a senior analyst. Apple support assigned a senior guy who said he will contact the engineering team. After 2 days, I was told that the engineering team has confirmed that this is a hardware issue.
    What I am surprised about is that no one seems to have done any analysis or debugging to figure this out. How do they decide that this is a hardware issue?
    The first time I tried it from my laptop and got this message. The support guy told me that my laptop may have an antivirus software which may be causing this issue. So I took it to the service centre. They tried the same restore from their machine and got the exact same error.
    The senior analyst that was later assigned to my case, again asked me to restore from my machine. I got the same error.
    Basically what they had verified in all these activities was that I was getting error 23. I dont know how they decided that this was due to hardware issues?
    Online documentation on Error 23 is vague. It is bunched long with other error codes. There is no clear explanation of what Error 23 is.
    But most importantly It says 'In rare cases, this may be a hardware issue'.
    So if it is a hardware issue in rare case, how was my case deemed to be a 'rare case'?
    When I asked them to escalate this, they said that there is no way to escalate.
    I have had a horrible experience with Apple support. Till this point I used to think of Apple as a class apart. But now I am totally disillusioned.
    My phone was about a year and a half old. I dont mind it if it actually turns out to be a hardware issue. I will take it as my bad luck.
    But I dont see how the support guys decided that this is a hardware issue. I need to know.
    And secondly I am shocked that Apple has no escalation path.
    Can anyone please help?

    Hi @imobl,
    You sound like an Apple support guy who hasn't been able to answer my questions.
    To respond to some of the points you made,
    - I did not ignore Ocean20's suggestion. If you has read my post, you would have known that I took my phone to the apple service centre where they tried this restore on THEIR machines. I am assuming that Apple guys know how not to block iTunes. So I actually do not understand your point about me trying the hosts file changes on my machine. Do you not believe that apple tested this issue with the correct settings?
    - you also give a flawed logic of why the issue is a hardware issue. You mentioned that If I thought that the issue was with the software, i should try a restore and getting it to work. The problem is that my error (23), and many others comes up when the restore fails. And you would be astonished to know that not all errors are hardware errors. Sometimes even software errors prevent restores. Funnily enough Apple itself mention that 'in rare cases, error 23 could be hardware related'.
    - all Apple has done so far is replicate the issue. I don not know how anyone can conclude that the issue is a hardware issue.
    And by the way, I am not certain that this is a software bug. Again if you read my Posts, you will notice I only want a confirmation,/proof that the issue is hardware related as they mention..
    Please refrain do. Responding if there is nothing to add.

  • I want Next/Back links between topics. Are there good examples how to do this?

    I also have multiple books in which I want to have Next/Back buttons. The Help PDF offered by Adobe does not adequately describe how to do this. Does anyone have a good example/description of how I do this?
    Walt Mahan

    Hi again
    To access the link I listed, you just click it in your web browser.
    There are a few different ways you can do this. You can insert the text as you wish to see it, then manually create the links. Ick! That's not very much fun.
    If you are using RoboHelp 8  you could create a Master Page and insert a Breadcrumb Trails placeholder, then apply the Master Page across the topics.
    For any version of RoboHelp you could achieve this by creating a Browse Sequence (Tools > Browse Sequence Editor) and generate WebHelp twice. The first pass to folder A and the second pass to folder B. During the first pass, you use the "Traditional - No skin" output. This would produce topics with code in them that contains the Previous and Next links. Then the second pass would be generated with a skin. You would then copy the topics from folder A and overwrite the topics in folder B to obtain the best of both worlds.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Slide to unlock doesn't work happend more than 8 time every time i had to restart my phone, Please can you tell me how to fix this bug . iPhone 5, iOS 7.0.4

    Slide to unlock doesn't work happend more than 8 time every time i had to restart my phone, Please can you tell me how to fix this bug .
    iPhone 5, iOS 7.0.4

    Backup and restore your software via iTunes. If the problem continues, restore as a NEW device. If this solves it, that means there is some corruption in your backup file. If the problem is still there, you should take it to the Genius Bar at an Apple Store for evaluation.

  • With the last update, 10.0.1, I can no longer pin my Firefox shortcut to my taskbar. How can I do this....there is no longer any option to do so. TIA

    This is what worked for me.
    1. Open Windows Explorer
    2. Proceed to where Firefox is stored
    3. Drag the Firefox icon to your desktop (this will create a desktop shortcut)
    4. Drag the Firefox shortcut to your task bar
    5. Delete your Firefox desktop shortcut
    You should now have a Firefox shortcut pinned to your task bar.

    Hmmm, could be related to the following, but I haven't tested myself:
    There is a bug in Firefox 21 with the Windows 7 Taskbar "Jump List" not being updated. (Long thread here: [https://support.mozilla.org/en-US/questions/959865 Why do visited sites not show in my jump list? (Win 7 Ultimate).])
    Judging from the bug system, the fix for that issue will definitely appear in Firefox 24, and there is an effort to move it up to Firefox 22 (beta) and Firefox 23 (aurora).

  • I have a new iPhone 5S.  While trying to learn about it, I accidentally recorded a voice memo with no content.  I cannot now figure out how to get rid of it.  There is a banner across the top of my phone with this memo which I don't want.  Help!

    I have a new iPhone 5S.  While trying to learn about it, I accidentally recorded a voice memo with no content.  I cannot now figure out how to get rid of it.  There is a banner across the top of my phone with this memo which I don't want.  I have deleted it from iTunes but cannot get it off the phone.  Help!

    The banner usually indicates that the memo is "Paused." If you go back into voice memos, touch the word "Done" beside the big red pause button, give it a name, then it will show in a list. Touch the memo in the list then touch the trash can icon that should appear.

Maybe you are looking for

  • HELP! I think my iPod is dying

    I have a 2004 fourth-generation 60G iPod with color display. It worked wonderfully for years on a PC. About 1 year ago, it started having problems. I accidentally ran it until the battery was drained. I tried to plug it in to recharge it. This did no

  • .MOV for viewing on Television

    I have iMovie, Quicktime-Pro, and Toast 8. Is there a method to burn .MOV files to DVD for viewing on a television? Thanks!

  • Safari won't open password protected websites.

    I've been having this issue since I installed Leopard and it's been a real drag. Safari won't open protected web directories. When I attempt to go to those sites Safari just makes me wait. Normally it should drop down the little username and password

  • Flash and PHP Code Alter

    I have a php code that talks back to my flash movie on "post" however I have recently added a more advanced feature and need some help altering the code to work. Right now the code is as such and works great because the message var. is located in the

  • How do I update the installation ISO?

    I have new hardware that needs kernel 2.6.25 to boot and I need to install Arch on it. Let's say that we have the x86_64 2008-03 installation ISO. How do I update it to include the new kernel 2.6.25?