From: Colin <net...@im...> - 2020-06-28 20:49:27
|
I like the idea! So initially it looks like this is purely for pattern matching. Will a future enhancement allow modifying via a regex as well? Cheers Colin K On 2020-06-28 12:02, Jeff Hennick wrote: > > I am proposing a new stage that draws on NetRexx's Java heritage: > REGEX (alternative name: GREP). It is a simple filter stage like > LOCATE, but uses regular expressions. This gives it a much richer (as > well as less comprehensible) set of selectors. > > I have submitted it to origin master for 3.09, but, René, if you > object to mixing in regular expressions, I'd withdraw it. > > All, comments and suggestions are very much welcomed. > > /** regex > > >>--REGEX--+--------------------------+--regex_string-(1)--->< > +-(--| options_string |--)-+ > > options_string: > |--+---------+--| > +-NUMBERS-+ (2) > > > Records matching the RegEx are put out on primary output > Records not matching are put out on secondary, if connected, or > discarded. > > (1) string is a Java RegEx expresion. null string passes all records. > (2) lines are prefaced with line number, 10 characters, right justified > > [Possible future options: BEFORE and AFTER, etc., to give context, ala > GREP.] > > */ > > /* > 20/ 6/28 Jeff Hennick > */ > > Jeff > > > > _______________________________________________ > netrexx-pipelines mailing list > net...@li... > https://lists.sourceforge.net/lists/listinfo/netrexx-pipelines |