From: Jeff H. <Je...@Je...> - 2020-08-03 20:58:38
|
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> <p>In light of Colin's suggestions,</p> <p>I have added the <b>COUnt</b> option to the REGEX (alias GREP) stage.</p> <p>Also changed is the regex_string is now a regex_Delimited_string.</p> <p><tt>/** regex<br> <br> >>--+--REGEX--+--+--------------------------+--regex_Dstring-(1)---><<br> +--GREP---+ +-(--| options_string |--)-+<br> <br> options_string:<br> +----------------------------+<br> |--v-+------------------------+-+--|<br> +-Numbers----------------+ (2)<br> +-Before-+-1------+------+ (3)<br> | +-number-+ |<br> +-After-+-1------+-------+ (3)<br> | +-number-+ |<br> +-Context-+-1------+-----+ (4)<br> | +-number-+ |<br> +-NOSeparator------------+ (5)<br> +-Separator-+-/--/----+--+ (5)<br> | +-DString-+ |<br> +-Tertiary---------------+ (6)<br> +-COUnt------------------+ (7)<br> <br> NetRexx Pipelines only.<br> Records matching the RegEx are put out on primary output.<br> Records not matching are put out on secondary, if connected, or discarded.<br> <br> (1) Regex_Dstring is a Java RegEx expresion. Null string passes all records.<br> (2) Records are prefaced with records number, 10 characters, right justified.<br> (3) Number of records put out after a matching record.<br> (4) Number of records put out before and after a matching record.<br> (5) Inserted before a group of "before records" or the found record with "after records."<br> (6) Send all matching records (no numbers) to tertiary output stream, if connected.<br> (7) Only a count of matches is put out on the primary output stream. (Other options<br> probably should not be used with this.)<br> <br> */ <br> </tt></p> <p><tt>Jeff</tt><br> </p> </body> </html> |