bugGNU Octave - Bugs: bug #37914, regexprep error when replacing...

 
 

bug #37914: regexprep error when replacing "("

Submitted by:  None
Submitted on:  Thu 13 Dec 2012 11:26:16 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: JoergOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.3
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 13 Dec 2012 01:54:10 PM UTC, comment #1:

The second argument is a pattern, so in this context the '(' is a grouping operator. The escape character is required to treat it as a literal:

See the regexp documentation for more details on patterns.

Axel Mathéi <amathei>
Thu 13 Dec 2012 11:26:16 AM UTC, original submission:

regexprep returns error when the second input argument contains "(":

However, "(" in the third input argument is ok

Basically the same is true for ")"

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

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 rik5 (Updated the item)
  • -unavailable- added by amathei (Posted a comment)
  • -unavailable- added by None (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 14 Dec 2012 08:33:04 PM UTCrik5StatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1