CS
cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
namespace Sololearn
{
class Program
{
static void Main(string[] args)
{
//
Regex rg=new Regex("^(?=.*?[0-9].{1,})(?=.*?[!@$%&*#].{1})(?=.*?[a-zA-Z]).{7,}$");
string input1=Console.ReadLine();
if(rg.IsMatch(input1)){
Console.WriteLine("Strong");
}
else{
Console.WriteLine("Weak");
}
}
}
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Запуск