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

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

[Octave-bug-tracker] [bug #34101] regexp 'match' problem with empty stri


From: Rik
Subject: [Octave-bug-tracker] [bug #34101] regexp 'match' problem with empty string
Date: Sat, 03 Sep 2011 04:23:03 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0

Update of bug #34101 (project octave):

              Item Group:             Performance => Crash                  

    _______________________________________________________

Follow-up Comment #1:

There is something wrong with the handling of empty patterns in regexp.  I
have not determined whether it is with Octave or with the PCRE libraries
themselves.

Here is a simple test case which puts Octave into an infinite loop that one
must use Ctrl-C to abort from.


regexprep ("hello world", "", "#")


Perl itself correctly matches a null pattern at every opportunity which means
every single character as this command line example demonstrates.


perl -pe 's//#/g'
Hello World
#H#e#l#l#o# #W#o#r#l#d#




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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