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
GetDirectory Opus 4 functions.
*) with spaces.
Given an input string:
This is*a*test (meaning the files
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
FileName = Translate(AllItems, ' ', '/')