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

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

[Octave-bug-tracker] [bug #37914] regexprep error when replacing "("


From: Axel Mathéi
Subject: [Octave-bug-tracker] [bug #37914] regexprep error when replacing "("
Date: Thu, 13 Dec 2012 13:54:10 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0

Follow-up Comment #1, bug #37914 (project octave):

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:


octave:1> regexprep('Hello _ ( ) ','(',')')
ans = Hello _ ) )


See the regexp documentation for more details on patterns.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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