function M = all_nfsa % accetps all strings if ~exist('localf','var'), global ALF, localf = ALF; else, global ALF, ALF = localf; end re = setstar(ALF); M = regexp2nfsa(re,ALF); return function re = setstar(u) k=length(u); P=repmat('+',1,k); up = [u;P]; up = up(:)'; re = ['(' up(1:end-1) ')*']; return