namespace FileFlows.BasicNodes.Helpers; /// /// General helper /// public class GeneralHelper { /// /// Checks if the input string represents a regular expression. /// /// The input string to check. /// True if the input is a regular expression, otherwise false. public static bool IsRegex(string input) { return new[] { "?", "|", "^", "$", "*" }.Any(ch => input.Contains(ch)); } }