regex.e question

new topic     » topic index » view thread      » older message » newer message

I expected identical results for this example. Why is it different?

include std/regex.e as re 
regex r  
 
r = re:new( "(abx|xyz) \\1" ) 
? re:find_all( r, "abc abc" ) 
--{} 
 
r = re:new( #/(abc|xyz) \1/ ) 
 
? re:find_all( r, "abc abc" ) 
--                 |     |    { 
--                 |     |      { 
--                 abc abc        {1,7}, 
--                 abc            {1,3} 
--                              } 
--                            } 
 
-- BAD results should be the same 

using svn1889


Tom

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu