Check if file exists in directory, the filename can use wildcard characters (*, ?). Set ignoreCase to True to ignore case sensitivity on compare. If extendedCompare is True the filename can also contains the wildcard + and character ranges ([a,b,c] or [a-z]). Wildcard + is same as * but at least one character must exist (* accepts empty strings).
Returns the real file name if the file exists in directory or an empty string if not. The filename can use wildcard characters (*, ?). Set ignoreCase to True to ignore case sensitivity on compare. If extendedCompare is True the filename can also contains the wildcard + and character ranges ([a,b,c] or [a-z]). Wildcard + is same as * but at least one character must exist (* accepts empty strings).
Returns a list of matching files from directory, the filename can use wildcard characters (*, ?). Set ignoreCase to True to ignore case sensitivity on compare. If extendedCompare is True the filename can also contains the wildcard + and character ranges ([a,b,c] or [a-z]). Wildcard + is same as * but at least one character must exist (* accepts empty strings).
Returns a list of matching files from directory, the filename can use wildcard characters (*, ?). Set ignoreCase to True to ignore case sensitivity on compare. If extendedCompare is True the filename can also contains the wildcard + and character ranges ([a,b,c] or [a-z]). Wildcard + is same as * but at least one character must exist (* accepts empty strings). If resursive is True then subfolders will also scanned. If listFiles is True then files will included in the result list. If listDirs is True then directories will included in the result list.
Compare the levenshtein distance between a word and all entries in a wordlist. All entries with a score >= threshold (between 0.0 and 1.0) are part of the result list. Set ignoreCase to true to ignore case sensitivity on compare.
Compares string with pattern, the pattern can use wildcard characters (*, ?). Set ignoreCase to true to ignore case sensitivity on compare. If extendedCompare ist true the pattern can also contains the wildcard + and character ranges ([a,b,c] or [a-z]). Wildcard + is same as * but at least one character must exist (* accepts empty strings).
SubAppStart (Args() AsString)
DimresultAsBoolean result = MF_String.Compare("This is a test string", "*TEST*", true, false)
result = MF_String.Compare("This is my best string", "*[B,T]EST*", true, true)
EndSub
SubAppStart (Args() AsString)
DimresultAsInt result = MF_String.LevenshteinDistance("This is the first string", "This is the second string", True)
EndSub
Split a string at given delimiters. If repeater is true then following delimiters will inspected as one delimiter. If ignoreFirst is True then a empty string before the first delimiter will be ignored. If ignoreLast is True then a empty string after the last delimiter will be ignored.
Split a string at given delimiters. If startQuotas and endQuotas are not empty, delimiters between quotas will be ignored. If repeater is true then following delimiters will inspected as one delimiter. If ignoreFirst is True then a empty string before the first delimiter will be ignored. If ignoreLast is True then a empty string after the last delimiter will be ignored. If includeQuotas is true then available quotas will included in the result.
SubAppStart (Args() AsString)
DimresultAsList<String>
result = MF_String.TokenList2("This is 'the string'", " ", "'", "'", True, True, True, False)
EndSub Top