[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54592] regexp should escape unpaired brackets
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #54592] regexp should escape unpaired brackets and parentheses for Matlab compatibility |
Date: |
Mon, 3 Sep 2018 13:12:19 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
Update of bug #54592 (project octave):
Priority: 5 - Normal => 4
Status: Need Info => Confirmed
Release: 4.4.0 => dev
Summary: regexprep gets confused when parentheses should be
processed => regexp should escape unpaired brackets and parentheses for Matlab
compatibility
_______________________________________________________
Follow-up Comment #11:
So it would seem that Matlab pre-processes the regular expression and escapes
non-paired special characters such as '[', ']', '(', ')'. It also seems to be
smart enough to recognize when one of these characters has already been
escaped.
Marking as confirmed. The easy workaround, for the time being, is to escape
unpaire brackets and parentheses yourself in the regular expression. Because
there is a workaround I am lowering the priority slightly to 4.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54592>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/