using System;
using System.Text.RegularExpressions;

namespace MyCompiler {
    class Program {
        public static void Main(string[] args) 
        {
            Console.WriteLine("Hello world!");
            proc("sd2ddssds@A");
        }
        
        public static void proc(string str)
        {
            var bl = Regex.IsMatch(str,"^(?=.*?[a-z])(?=.*?[A-Z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{6,24}$");
            Console.WriteLine(bl);
        }
    }
}
/*
This regex will enforce these rules:

At least one upper case English letter, (?=.*?[A-Z])
At least one lower case English letter, (?=.*?[a-z])
At least one digit, (?=.*?[0-9])
At least one special character, (?=.*?[#?!@$%^&*-])
Minimum eight in length .{6,24} (with the anchors)

*/

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: