There is no definitive solution in pure ARexx for this short of using some external library. One thing that can be done would be to:
*
) instead of space using the Get
Directory Opus 4 functions./
) using Translate
.*
) with spaces.
Given an input string: This is*a*test
(meaning the files This is
, a
and test
), the former will result in: This/is a test
which can then be handled by the ARexx Word
family of functions. In short:
GetAll '*' AllItems = RESULT AllItems = Translate(Translate(AllItems, '/', ' '), ' ', '*')
Then, when processing a word, for example with SubWord
you have to translate the second reserved character /
back to space using Translate
:
FileName = Translate(AllItems, ' ', '/')