bugGNU Octave - Bugs: bug #39426, regexp: backreferences with named...

 
 

bug #39426: regexp: backreferences with named capture groups (\k) are not supported

Submitter:  Rik <rik5>
Submitted:  Sun 07 Jul 2013 10:21:17 PM UTC
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Mon 21 Nov 2016 10:15:59 PM UTC, comment #1: 

This issue is still present in Octave 4.2.0.

The code in comment #0 still throws an error.

Hartmut <hardy>
Sun 07 Jul 2013 10:21:17 PM UTC, original submission:  

Because Octave's internal interface substitutes its own names for named capture groups the \k syntax does not work.

The example below, for finding duplicate characters, should work.

regexp ('abccdeffg', '(?<char1>.)\k<char1>', 'match')

Rik <rik5>
Project Administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only project members can vote.

     

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.9