Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f701f7d

Browse files
committed
Initial commit, added icon and 3 snippets
1 parent 11625c1 commit f701f7d

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed

‎snippets/regex/icon.svg

Lines changed: 6 additions & 0 deletions
Loading[フレーム]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
Title: Hexadecimal Color
3+
Description: Matches hex color codes
4+
Author: majvax
5+
Tags: color,hexadecimal
6+
---
7+
8+
9+
```regex
10+
^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$
11+
12+
13+
-> Usage:
14+
#FFF1 ✗
15+
#FFF ✓
16+
#FFF000 ✓
17+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
Title: Email Address
3+
Description: Match any email address
4+
Author: majvax
5+
Tags: email
6+
---
7+
8+
9+
```regex
10+
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
11+
12+
-> Usage:
13+
example.name@domain.com.ru ✓
14+
name.surname@gmail.com ✓
15+
```
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
Title: Strong Password
3+
Description: Match password with at least 12 characters, one uppercased letter, one number, and one special character.
4+
Author: majvax
5+
Tags: password
6+
---
7+
8+
9+
```regex
10+
^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{12,}$
11+
12+
-> Usage:
13+
longpassword ✗
14+
longpassw0rd ✗
15+
longp@ssw0rd ✗
16+
Longp@ssw0rd ✓
17+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /