Hello again Eric, I am beginning to doubt the portability of regular expressions altogether. A fully grouped pattern seems to be what AIX needs:
echo -e "abab\nbaab\nabba" | egrep '^((a?[ab])|(ba)){2}$' echo -e "abab\nbaab\nabba" | egrep '^((ba)|(a?[ab])){2}$' If this does not work, AIX stays hopeless! Could it be that AIX produces a match for echo "abaaba" | egrep '^((a?[ab])|ba){2}$' which would be honestly terrible. Back to the original matter. Following the suggestion of Charles Steinkuehler, the functionality in validator.sh is restored when I put the asymmetry to ugly use: $THIS(-$THIS){3} ---> ($THIS-){3}$THIS (broken) (functional) where THIS is similar to (r?a|is) only that I use ordinary regexes in validator.sh, not the extended version, although this service is internal to validator.sh. As some of you have noticed, I did file a notice with the uClibc mailing list, so hopefully the matter will be better as the next beta phase of Bering-uC unrolls. Best regards Mats E A fre 2008-02-29 klockan 18:20 +0100 skrev Erich Titl: > Hi Mats > > Mats Erik Andersson schrieb: > > Dear Eric, > > > > .... > > 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 > I expected also "abab" in both cases, like GNU provides. > 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