diff --git a/source/net/filebot/format/ExpressionFormatMethods.java b/source/net/filebot/format/ExpressionFormatMethods.java index 27b41e20..1fef898f 100644 --- a/source/net/filebot/format/ExpressionFormatMethods.java +++ b/source/net/filebot/format/ExpressionFormatMethods.java @@ -95,6 +95,10 @@ public class ExpressionFormatMethods { return compile(pattern, CASE_INSENSITIVE | UNICODE_CHARACTER_CLASS | MULTILINE).matcher(self).replaceAll("").trim(); } + public static String removeIllegalCharacters(String self) { + return FileUtilities.validateFileName(Normalization.normalizeQuotationMarks(self)); + } + /** * Replace space characters with a given characters. *