Wataru Ashihara - 2018-02-25

Your grep seems to use ENHANCED FEATURES descibed in re_format(7), whereas proctools use extended regular expressions defined in POSIX.
Using ENHANCED FEATURES is easy (simply replace REG_EXTENDED with REG_ENHANCED in regcomp()) but may have a portability issue.

 

Last edit: Wataru Ashihara 2018-02-26