Re: regex.e question

new topic     » goto parent     » topic index » view thread      » older message » newer message
Tom said...

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

You have a minor typo...

Tom said...
include std/regex.e as re 
regex r  
 
r = re:new(  "(abx|xyz) \\1" ) 
r = re:new( #/(abc|xyz) \1/ ) 

I put the back to back so you can spot it easier. First is abx|xyz, second is abc|xyz which is what I think you really meant.

Jeremy

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

Search



Quick Links

User menu

Not signed in.

Misc Menu