Hi Viktor, > On Apr 7, 2018, at 2:04 AM, Viktor Dukhovni <postfix-us...@dukhovni.org> > wrote: > > FreeBSD 11 (POSIX): > > $ echo "1 b" | egrep '\d\s\w' > $ > > MacOS High Sierra (POSIX with GNU or similar extensions): > > $ echo "1 b" | egrep '\d\s\w' > 1 b > $ > > Your Ubuntu system most likely will match the MacOS results. Which means > that your regexp table is not portable, but happens to work on your system.
I can confirm the expected result for MacOS High Sierra . . . but interestingly enough, I get the FreeBSD 11 results on Ubuntu 16.04 LTS. Are there any other tests I can try to confirm the existence of GNU extensions to POSIX regular expressions ? Thanks, - J