in reply to Re: Regex::Reverse tricky test cases
in thread Regex::Reverse tricky test cases
Note that the 2nd is from japhy's seminal work on the subject, and differs from his reversal: alternatives should maintain their order (foo|bar becomes oof|rab, not rab|oof).Before: (?i-msx:a(ab)(cd)\2\1) After: (?i-msx:(ba)(dc)\2\1a) Before: (?-imsx:\d+[abc]def(foo|bar)) After: (?-imsx:(oof|rab)fed[abc]\d+)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regex::Reverse tricky test cases
by dragonchild (Archbishop) on May 17, 2005 at 13:31 UTC | |
by Roy Johnson (Monsignor) on May 17, 2005 at 14:03 UTC | |
by dragonchild (Archbishop) on May 17, 2005 at 14:10 UTC | |
by japhy (Canon) on May 17, 2005 at 16:31 UTC | |
by Roy Johnson (Monsignor) on May 17, 2005 at 14:49 UTC | |
by dragonchild (Archbishop) on May 17, 2005 at 14:58 UTC | |
|