Hi Mats Mats Erik Andersson schrieb: > Dear Eric, > > I will leave all your code for reference, and add one more > for OpenBSD. The really bad news is that uClibc (Berin 1.2/3.1) > is assymmetric: five hits, where I went to efforts to construct > symmetric test cases. As for AIX, the answer is symmetric, but > could you possible test a deeper grouping of patterns: > > echo -e "abab\nbaab\nabba" | egrep '^((a?[ab])|ba){2}$' > echo -e "abab\nbaab\nabba" | egrep '^(ba|(a?[ab])){2}$'
# echo -e "abab\nbaab\nabba" | egrep '^((a?[ab])|ba){2}$' baab abba # echo -e "abab\nbaab\nabba" | egrep '^(ba|(a?[ab])){2}$' baab abba Regards Erich ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel