Usage: @GetAfniPrefix..... example: @GetAfniPrefix /Data/stuff/Hello+orig.HEAD returns the afni prefix of name (Hello) Wildcards are treated as regular characters: example: @GetAfniPrefix 'AAzst1r*+orig' returns : AAzst1r* Ziad Saad (ziad@nih.gov) LBC/NIMH/ National Institutes of Health, Bethesda Maryland