From: J L. T. <jlt...@ma...> - 2023-01-12 06:35:38
|
This is what I tried: | ~/bin/NetRexx | $ pipe "(getHelp) < getOOrexxDocs.nrx | inside %/* -- Help File Text Start -% %*/ -- Help File Text End -% | console" | NOTE: Picked up JDK_JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true | @00:28:55,leslie@pinto rc=0 I got the same result with !. Leslie On 2023-01-11 07:41:10 Jeff Hennick wrote: > This is what we have in the NetRexx "Pipelines Stages.html" ( > https://sourceforge.net/p/netrexx/code/ci/master/tree/documentation/njpipes >/Pipeline%20Stages.html , unfortunately this is not available currently on > NetRexx.org): Delimited String > |--+--------+--+--delimitedString--+--| > +-STRing-+ +--DString----------+ > Examples: > /abc/ > ,, > xf1f2f3 > b11000001 > str xabx > > A delimited character string is written between two occurrences of a > delimiter character, as a hexadecimal literal, or as a binary literal. The > delimiter cannot be blank and it must not occur within the string. Two > adjacent delimiter characters represent the null string. It is suggested > that a special character be used as the delimiter, but this is not > enforced. A hexadecimal literal is specified by a leading H or X followed > by an even number of hexadecimal digits. A binary literal is specified by a > leading B followed by a string of 0 and 1; the number of binary digits must > an integral multiple of eight. The keyword STRING can be used to specify > that the delimited string contains a string that is terminated by delimiter > characters. And here is a modified version of one of the confirmation tests > using both % and ! as delimiters around /-containing strings: pipe (t) > -- inside dstring dstring ? > literal first one,second one,third one,fourth/one,fifth > one,sixth/one,seventh one,eighth one | split , | > inside %fourth/% !sixth/! | > cons pr /Raw: / | > c1: compare any ~2# 1 inside dstring dstring ~ equal ~*OK*~ notequal > ~**FAIL** at rec \\c col \\b.~ less > /Less:\nActual:\n\\p\nExpected:\n\\s\n/ more > /More:\nActual:\n\\p\nExpected:\n\\s\n/ | cons ? > literal fifth one; | -- expected result | > split ; | > c1: ? > > gives me > PS C:\Users\Jeff\Documents\nr\netrexx-code\examples\pipes> java t > Raw: fifth one > 2# 1 inside dstring dstring *OK* > > So, I am not able to duplicate your problem at this time. Could you supply > a sample of what is failing? > > > > Jeff > > > On 1/10/2023 11:30 PM, J Leslie Turriff wrote: > > Hi, > In pipeline stage 'inside' I need to match strings that contain /. > I tried using ! and %, but they don't seem to work. What are safe string > delimiters to use in a netrexx pipeline? Can they be any character that > does not appear in the string, or are there restrictions? > Hopefully it works the same way as CMS/TSO Pipelines (from the > CMS/TSO Pipelines Author's > > Edition 1.1.12): > | delimitedString: > | > | A delimited character string is written between two occurrences of a > | delimiter character, as a hexadecimal literal, or as a binary literal. > | The delimiter cannot be blank and it must not occur within the string. > | Two a adjacent delimiter characters represent the null string. It is > | suggested that a special character be used as the delimiter, but this is > | not enforced. However, it is advisable not to use alphanumeric > | characters, because a future release might add a keyword or a number as a > | valid option to a built-in program where only a delimited string is valid > | today. > | > | A hexadecimal literal is specified by a leading H or X followed by an even > | number of hexadecimal digits. A binary literal is specified by a leading B > | followed by a string of 0 and 1; the number of binary digits must an > | integral multiple of eight. > | > | The keyword STRING can be used to specify that the delimited string > | contains a string that is terminated by delimiter characters. This acts > | as a placeholder so that any non-blank character can be used as the > | delimiter character. Note that this use of the keyword is in addition to > | a keyword that is recognised by a built-in program. (Thus, split string > | string xabcx) > | > | Examples: > | /abc/ > | ,, > | xf1f2f3 > | b11000001 > | str xabx > > Leslie > -- > > > > _______________________________________________ > netrexx-pipelines mailing list > net...@li... > https://lists.sourceforge.net/lists/listinfo/netrexx-pipelines -- |