Skip to content

Instantly share code, notes, and snippets.

View mayorJAY's full-sized avatar
🎯
Focusing

Joseph Olugbohunmi mayorJAY

🎯
Focusing
View GitHub Profile
@mayorJAY
mayorJAY / PasswordValidationTest.java
Last active January 29, 2022 20:07
Password Validation Regex
public class PasswordValidationTest {
private Pattern pattern;
@Before
public void setUp() {
String regex = "^(((?=.*[a-z])(?=.*[A-Z])(?=.*\\d))|((?=.*[A-Z])(?=.*\\d)(?=.*[@$!%*#?&]))|((?=.*[a-z])(?=.*[A-Z])(?=.*[@$!%*#?&]))|((?=.*[a-z])(?=.*\\d)(?=.*[@$!%*#?&])))(?=\\S+$).{8,}$";
pattern = Pattern.compile(regex);
}
String regex = "^(((?=.*[a-z])(?=.*[A-Z])(?=.*\\d))|((?=.*[A-Z])(?=.*\\d)(?=.*[@$!%*#?&]))|((?=.*[a-z])(?=.*[A-Z])(?=.*[@$!%*#?&]))|((?=.*[a-z])(?=.*\\d)(?=.*[@$!%*#?&])))(?=\\S+$).{8,}$";
@mayorJAY
mayorJAY / opensource.md
Last active June 16, 2024 18:46
Joseph Olugbohunmi's Open Source Contributions