Kerr-Mudd, John
2024-09-28 08:33:23 UTC
On 27 Sep 2024 14:17:38 GMT
I was too lazy to dig into my rusty brain to code the equivalent in Rexx,
I was hoping someone here would do it!
OK,OK. Cribbed & hacked from a stackoverflow answer:
https://stackoverflow.com/questions/15437494/rexx-parse-a-csv-line-separator
myline="the,quick,brown,fox"
do i = 1 by 1 while myline <> ''
parse var myline w.i ',' myline
end
w.0 = i-1
do i = 1 to w.0
say w.i
end
Hmm, must be a shorter way without the bother of setting up the stem
array.
xpost to comp.lang.rexx, if it still exists
On 27 Sep 2024 at 11:10:37, The Natural Philosopher
He said Rexx; very superior language, written by a Brit at IBM Hursley
45 years ago,
Was, maybe still is, the default language on IBM mainframes.
https://sourceforge.net/projects/oorexx/files/
https://sourceforge.net/projects/regina-rexx/On Thu, 26 Sep 2024 20:51:25 -0000 (UTC) Lawrence D'Oliveiro
#end for
the quick brown fox
In Python, strings are objects, and that applies to string
expressions (including string literals) as well.
You need Rexx
NOBODY needs REGEX!One of the favourite functions in my library pulls the next token
from a delimited string, but as opposed to strtok() it does it
non-destructively and can handle empty strings.
print(item)from a delimited string, but as opposed to strtok() it does it
non-destructively and can handle empty strings.
#end for
the quick brown fox
In Python, strings are objects, and that applies to string
expressions (including string literals) as well.
45 years ago,
Was, maybe still is, the default language on IBM mainframes.
https://sourceforge.net/projects/oorexx/files/
I was hoping someone here would do it!
print(item)
#end for
#end for
https://stackoverflow.com/questions/15437494/rexx-parse-a-csv-line-separator
myline="the,quick,brown,fox"
do i = 1 by 1 while myline <> ''
parse var myline w.i ',' myline
end
w.0 = i-1
do i = 1 to w.0
say w.i
end
Hmm, must be a shorter way without the bother of setting up the stem
array.
xpost to comp.lang.rexx, if it still exists
--
Bah, and indeed Humbug.
Bah, and indeed Humbug.