Export .afn from regex