Index: /trunk/src/uvmat.m
===================================================================
--- /trunk/src/uvmat.m	(revision 555)
+++ /trunk/src/uvmat.m	(revision 556)
@@ -3472,9 +3472,9 @@
     if ~ischar(FileName),return,end %abandon if the browser is cancelled
     path_transform_fct =fullfile(PathName,FileName);
-    if isempty(regexp(FileName,'.m$'))% detect file extension .m
+    if isempty(regexp(FileName,'\.m$'))% detect file extension .m
         msgbox_uvmat('ERROR','a Matlab function .m must be introduced');
         return
     else
-        transform_name=regexprep(FileName,'.m','');
+        transform_name=regexprep(FileName,'\.m','');
     end
     ichoice=find(strcmp(transform_name,menu),1);%look for the selected fct in the existing menu
