[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35012] regexp hangs when spaces are at the en
From: |
Søren Hauberg |
Subject: |
[Octave-bug-tracker] [bug #35012] regexp hangs when spaces are at the end of the input |
Date: |
Thu, 08 Dec 2011 13:48:37 +0000 |
User-agent: |
Mozilla/5.0 (Ubuntu; X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0 |
URL:
<http://savannah.gnu.org/bugs/?35012>
Summary: regexp hangs when spaces are at the end of the input
Project: GNU Octave
Submitted by: hauberg
Submitted on: Thu 08 Dec 2011 02:48:35 PM CET
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Other
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.4.0
Operating System: GNU/Linux
_______________________________________________________
Details:
I've been hitting (what appears to be) an infinite loop in 'regexp'. The
following example reproduces things for me
numPat = '(-?[0-9]*\.?[0-9]*[eE]?-?[0-9]*)';
R = ' 9.962 0.000 0.000 ';
offsets = regexp(R, numPat, 'tokens')
This does not return on my machine. The problem disappears if I remove the
space at the end of 'R'.
Søren
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35012>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #35012] regexp hangs when spaces are at the end of the input,
Søren Hauberg <=