[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50329] ${cmd} replacement operator in regexpr
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #50329] ${cmd} replacement operator in regexprep |
Date: |
Thu, 16 Feb 2017 10:24:32 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 |
URL:
<http://savannah.gnu.org/bugs/?50329>
Summary: ${cmd} replacement operator in regexprep
Project: GNU Octave
Submitted by: gyom
Submitted on: Thu 16 Feb 2017 03:24:31 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
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
regexprep('aabb','ab','${fliplr($&)}')
Output should be 'abab' but Octave returns 'a${fliplr($&)}b'.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50329>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50329] ${cmd} replacement operator in regexprep,
Guillaume <=