octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #54592] regexprep gets confused when parenthes


From: Docf
Subject: [Octave-bug-tracker] [bug #54592] regexprep gets confused when parentheses should be processed
Date: Wed, 29 Aug 2018 08:39:45 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0

URL:
  <http://savannah.gnu.org/bugs/?54592>

                 Summary: regexprep gets confused when parentheses should be
processed
                 Project: GNU Octave
            Submitted by: docfr
            Submitted on: Wed 29 Aug 2018 12:39:44 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

When parentheses  should be processed e.g. regexprep("tes)t", ')', '') Octave
returns "error: regexprep: unmatched parentheses at position 0 of expression"

The command regexprep("tes!t", '!', '') will just remove the ! 
This works as expected. There seems to be check for balance of parentheses
this must be removed here. 





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54592>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]