@Joost, so, what do you think about renaming your unit to clear the namespace? Which name do you prefer? I propose: joostregexpr oldregexpr is messy because there is already a old/regexpr -- Felipe Monteiro de Carvalho