bugGNU Octave - Bugs: bug #50329, ${cmd} replacement operator in...

 
 

bug #50329: ${cmd} replacement operator in regexprep

Submitted by:  Guillaume <gyom>
Submitted on:  Thu Feb 16 15:24:31 2017  
 
Category: Octave FunctionSeverity: 1 - Wish
Priority: 5 - NormalItem Group: Feature Request
Status: ConfirmedAssigned to: None
Originator Name: GuillaumeOpen/Closed: Open
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Fri Feb 17 17:09:39 2017, comment #1:

Since dynamic expressions are yet to be implemented, will a patch that takes ${cmd} as replacement input for regexprep but input of cmd should be a static string?

Pranav Bhasin <pbhasin96>
Thu Feb 16 15:24:31 2017, original submission:

With Matlab, regexprep has an option to use ${cmd} in the replacement string to execute command cmd for each match:

https://www.mathworks.com/help/matlab/ref/regexprep.html#inputarg_replace

Output should be 'abab' but Octave returns 'a${fliplr($&)}b'.

Guillaume <gyom>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pbhasin96 (Posted a comment)
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by gyom (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
    Thu Feb 16 16:10:53 2017rik5Severity3 - Normal=>1 - Wish
      Item GroupMatlab Compatibility=>Feature Request
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1