[Top][All Lists]

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

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

From: Rik
Subject: [Octave-bug-tracker] [bug #54592] regexprep gets confused when parentheses should be processed
Date: Thu, 30 Aug 2018 16:52:57 -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):

                  Status:               Confirmed => Need Info              


Follow-up Comment #4:

I'm very surprised this works.  Using Perl directly

perl -pe 's/)//'  "tes)t"
Unmatched ) in regex; marked by <-- HERE in m/) <-- HERE / at -e line 1.

Could you run the following in your version of Matlab and then upload the
diary file?

diary on
regexprep ('tes)t', ')', '')
regexprep ('tes)t', ')', 'abc')
regexprep ('tes)t', '(', '')
regexprep ('te(s)t', '(s)', '')
diary off


Reply to this item at:


  Message sent via Savannah

reply via email to

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