bugGNU Octave - Bugs: bug #48883, regexp(rep): Matlab compatibility...

 
 

bug #48883: regexp(rep): Matlab compatibility with empty match groups.

Submitted by:  Kai Torben Ohlhus <siko1056>
Submitted on:  Wed 24 Aug 2016 12:49:46 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: DuplicateAssigned to: Kai Torben Ohlhus <siko1056>
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 24 Aug 2016 03:56:34 PM UTC, comment #2:

See bug #38149. It may be related.

I believe the problem is very specific to an empty match in the first position.

As a canonical example,

But, an empty match elsewhere is okay, and returns a null token.

It may also be specifically related to the '^' pattern. The example below is almost the same as the one above, but doesn't work.

Rik <rik5>
Project Administrator
Wed 24 Aug 2016 03:36:54 PM UTC, comment #1:

Please take a look at bug #38149 (and close this as a duplicate if you think appropriate). I think there has been some partial work done on that bug report but was left undone, later comments say this is more difficult than it first appears.

Mike Miller <mtmiller>
Project Administrator
Wed 24 Aug 2016 12:49:46 PM UTC, original submission:

I hope it is an easy one:

Matlab R2016a:

Octave:

Kai Torben Ohlhus <siko1056>
Project MemberIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by siko1056 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 24 Aug 2016 03:57:16 PM UTCsiko1056StatusIn Progress=>Duplicate
      Open/ClosedOpen=>Closed
    Wed 24 Aug 2016 03:37:04 PM UTCmtmillerDependencies-=>Depends on bugs #38149

    Back to the top


    Powered by Savane 3.1-cleanup1