new pcre_expand() based on the 're' one
cleanup