On Thu, 24 May 2001, Richard Guenther wrote: > Hi! > > I need to mangle a filename selected by the filerequestor, i.e. > I need to exchange one path component, thus doing something along > sed -e 's/\(.*\)\/rp\/\(.*\)/\1\/cart\/\2/' > > As I obviously cannot use parse with formats like "%s/rp/%s" I > need to do this different. Has anyone done something like that > before? I'll either try to do a generic sed module using regexp() > or a module like system which allows stdout being passed to dx > again (dont know how to do this with NT).
To follow up myself - how exact has parse to match sscanf behavior? Would it be ok to change the parse implementation to use a regular expression created out of the format (exchange all %'s with \(.*\)) and to have sscanf operate on the matched substrings with the format? So, basically, are there any concerns wrt compatibility? Richard. -- Richard Guenther <[EMAIL PROTECTED]> WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/ The GLAME Project: http://www.glame.de/