CSharpRedotTools / Template

A template used for quickly setting up new Redot 4 C# games.
MIT License
111 stars 8 forks source link

Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time #62

Closed valkyrienyanko closed 1 month ago

valkyrienyanko commented 1 month ago

No idea what this means. Making an issue as a reminder to figure it out later.

private static bool IsAlphaNumericAndAllowSpaces(string str)
{
    Regex rg = new(@"^[a-zA-Z0-9\s,]*$");
    return rg.IsMatch(str);
}