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

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

[Octave-bug-tracker] [bug #29987] strrep compatibility


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #29987] strrep compatibility
Date: Tue, 01 Jun 2010 14:36:12 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100501 Iceweasel/3.5.9 (like Firefox/3.5.9)

Follow-up Comment #2, bug #29987 (project octave):

I think the rule is that the full replacement string is inserted in the
result string for each overlapping pattern match.  So your example produces
"xyzxyz".

The Matlab docs say that strrep first gets a list of all the locations where
the pattern matches (same as the strfind function).


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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