bugGNU Octave - Bugs: bug #35012, regexp hangs when spaces are at...

 
 

bug #35012: regexp hangs when spaces are at the end of the input

Submitter:  Søren Hauberg <hauberg>
Submitted:  Thu 08 Dec 2011 01:48:35 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.4.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 09 Dec 2011 07:58:28 AM UTC, comment #2: 

Indeed. I just compiled the latest tip and the error is gone.

Thanks
Søren

Søren Hauberg <hauberg>
Thu 08 Dec 2011 05:46:53 PM UTC, comment #1: 

It seems to work correctly with the current sources, so maybe this problem has already been fixed.

John W. Eaton <jwe>
Group administrator
Thu 08 Dec 2011 01:48:35 PM UTC, original submission:  

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

Søren Hauberg <hauberg>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by hauberg (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-12-09 hauberg Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code