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


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

Submitted by:  Guillaume <gyom>
Submitted on:  Thu 16 Feb 2017 03:24:31 PM UTC  
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 Markup)

You are not logged in

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


Fri 17 Feb 2017 05:09:39 PM UTC, 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 16 Feb 2017 03:24:31 PM UTC, original submission:

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


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):

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 16 Feb 2017 04:10:53 PM UTCrik5Severity3 - Normal=>1 - Wish
      Item GroupMatlab Compatibility=>Feature Request

    Back to the top

    Powered by Savane 3.1-cleanup1