On Fri, 27 Apr 2018 05:55:42 -0400, Rick wrote: >var = "This is a test" >parse var var "is" -2 value -- value is set to "s is a test" > >parse var var "is" <2 value -- value is set to "s ", the two characters >preceding the last match.
Whoops! This is mixed up in two ways: The preceding characters are parsed *before* the length pattern, and "is" matches the "is" in "This". parse var var "a" before -3 after -- before is set to the rest after the string pattern, "a test" -- after is set to the rest after the relative pattern, "is a test" parse var var "a" before <3 after -- before is set to what's between the two patterns, "is " -- after is set to the rest after the string pattern, "a test" ¬R ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Oorexx-users mailing list Oorexx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-users