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

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

[Octave-bug-tracker] [bug #37092] backslash escape character in regexp


From: Guillaume
Subject: [Octave-bug-tracker] [bug #37092] backslash escape character in regexp
Date: Thu, 23 Aug 2012 16:02:54 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1

Follow-up Comment #8, bug #37092 (project octave):

Thanks for the update Rik. If it helps, I can do some tests if you give me a
patch.

Perhaps totally unrelated, but I noticed another problem with regexp:

str='$Id: file.m 1234 2012-08-23 09:12:27Z user $';
regexp(str,['$Id: (?<file>S+) (?<id>[0-9]+) (?<date>S+) ' ...
            '(S+Z) (?<author>S+) $'],'names','once')


MATLAB returns

      file: 'file.m'
        id: '1234'
      date: '2012-08-23'
    author: 'user'


as expected, while Octave returns empty fields.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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