#1045 bug in rxregexp when using alternatives

None
open
nobody
none
5
2014-02-18
2012-02-09
Anonymous
No

given str1 = " AA2012 " and str2 = " BB2012 "
the following regexp finds a hit in str2 but is failing to find a hit in str1
RE1 = "(AA|BB)[:SPACE:]*[:DIGIT:]"

however the following equivalent regexp does find a hit in both str1 and str2:
RE2 = "(AA[:SPACE:]|BB[:SPACE:])[:DIGIT:]"

testcase attached.

C:>rexx -v
Open Object Rexx Version 4.1.0
Build date: Dec 5 2010
Addressing Mode: 32

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-02-09
     
  • Mark Miesfeld

    Mark Miesfeld - 2012-02-10

    Hi,

    Thanks for attaching a test program, especially an actual working test group.

    I'll take a look at this, but I don't understand the reg expr code that well, I might not be able to do anything about it.

     
  • Rick McGuire

    Rick McGuire - 2013-11-22
    • Pending work items: --> none
    • Group: v4.1 --> None
     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks