75 #define Regex_ValidUnZeroLength QString( "^.+$" ) |
75 #define Regex_ValidUnZeroLength QString( "^.+$" ) |
76 |
76 |
77 // used to match un-empty string, and is not totally empty characters. |
77 // used to match un-empty string, and is not totally empty characters. |
78 #define Regex_ValidUnEmpty QString( "^.*[^\\s].*$" ) |
78 #define Regex_ValidUnEmpty QString( "^.*[^\\s].*$" ) |
79 |
79 |
80 // this is regexp for vaild file/folder name: no \/:*?"<>| and is not totally empty characters. |
80 // this is regexp for valid file/folder name: no \/:*?"<>| and is not totally empty characters. |
81 // file name can not end with "." , but it is not include in this RegExp. It should be checked in Regex_ValidNotEndWithDot |
81 // file name can not end with "." , but it is not include in this RegExp. It should be checked in Regex_ValidNotEndWithDot |
82 // this expression is composed by two expressions: |
82 // this expression is composed by two expressions: |
83 // ^.*[^\\s].*$ used to match un-empty string and is not totally empty characters. |
83 // ^.*[^\\s].*$ used to match un-empty string and is not totally empty characters. |
84 // [^\\\\/:*?\"<>|] used to math valid file/folder name |
84 // [^\\\\/:*?\"<>|] used to math valid file/folder name |
85 // merge the two regex together: |
85 // merge the two regex together: |
86 // vaild file/folder name and is not totally empty. |
86 // valid file/folder name and is not totally empty. |
87 #define Regex_ValidFileFolderName QString( "^[^\\\\/:*?\"<>|]*[^\\\\/:*?\"<>|\\s][^\\\\/:*?\"<>|]*$" ) |
87 #define Regex_ValidFileFolderName QString( "^[^\\\\/:*?\"<>|]*[^\\\\/:*?\"<>|\\s][^\\\\/:*?\"<>|]*$" ) |
88 |
88 |
89 // is not end with dot( trim blank characters in the end first ) |
89 // is not end with dot( trim blank characters in the end first ) |
90 #define Regex_ValidNotEndWithDot QString( "^.*[^\\.\\s][\\s]*$" ) |
90 #define Regex_ValidNotEndWithDot QString( "^.*[^\\.\\s][\\s]*$" ) |
91 |
91 |