Program in C that translates a pattern specification into regular expression, processes lines of output text received from STDIN using regexps to qualify matches and write matching lines to STDOUT.
%{N} where N is non-negative integer - named non-greedy token, which match all text
There are two modifiers: S# and G. G for greedy, S modifier set count of captured spaces.