mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 19:00:20 -06:00
17 lines
511 B
C#
17 lines
511 B
C#
namespace FileFlows.VideoNodes.Helpers;
|
|
|
|
/// <summary>
|
|
/// General helper
|
|
/// </summary>
|
|
public class GeneralHelper
|
|
{
|
|
/// <summary>
|
|
/// Checks if the input string represents a regular expression.
|
|
/// </summary>
|
|
/// <param name="input">The input string to check.</param>
|
|
/// <returns>True if the input is a regular expression, otherwise false.</returns>
|
|
public static bool IsRegex(string input)
|
|
{
|
|
return new[] { "?", "|", "^", "$", "*" }.Any(ch => input.Contains(ch));
|
|
}
|
|
} |