Skip to content

Commit 41e5564

Browse files
committed
add: regex snippets
1 parent ab8e175 commit 41e5564

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ You can see all installed snippets in `Tools > Snippets...`, in the sublime text
2323
- [WAI-ARIA - hw.*](snippets/html/wai-aria)
2424
- [CSS - c.*](snippets/css/)
2525
- [JavaScript - j.*](snippets/js/vanilla)
26+
- [EcmaScript 2015 - je.*](snippets/js/es6/)
2627
- [Libraries](snippets/js/libraries)
2728
- [jQuery - jq.*](snippets/js/libraries/jquery)
29+
- [React - jr.*](snippets/js/libraries/react)
2830
- [Patterns](snippets/js/patterns)
2931
- [Design Patterns - jdp.*](snippets/js/patterns/design-patterns)
3032
- [UMD - jumd.*](snippets/js/patterns/umd)
@@ -36,6 +38,7 @@ You can see all installed snippets in `Tools > Snippets...`, in the sublime text
3638
- [Node - tn.*](snippets/js/tests/node)
3739
- [QUnit - tq.*](snippets/js/tests/qunit)
3840
- [Sinon - ts.*](snippets/js/tests/sinon)
41+
- [Regex](snippets/regex/)
3942
- [Schema.org](snippets/schema)
4043
- [JSON-LD - sj.*](snippets/schema/json-ld)
4144
- [Microdata - sm.*](snippets/schema/microdata)

snippets/regex/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Regex Snippets
2+
3+
## Prefix `r.*`
4+
5+
### [r.cpf] CPF
6+
7+
**allow:** 00000000000, 00000000000000, 000.000.000-00, 00.000.000/0000-00, 000000000-00 or 00000000/0000-00
8+
9+
```javascript
10+
([0-9]{2}[\.]?[0-9]{3}[\.]?[0-9]{3}[\/]?[0-9]{4}[-]?[0-9]{2})|([0-9]{3}[\.]?[0-9]{3}[\.]?[0-9]{3}[-]?[0-9]{2})
11+
```
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<snippet>
2+
<content><![CDATA[
3+
([0-9]{2}[\.]?[0-9]{3}[\.]?[0-9]{3}[\/]?[0-9]{4}[-]?[0-9]{2})|([0-9]{3}[\.]?[0-9]{3}[\.]?[0-9]{3}[-]?[0-9]{2})
4+
]]></content>
5+
<tabTrigger>r.cpf</tabTrigger>
6+
<description>r - CPF</description>
7+
</snippet>

0 commit comments

Comments
 (0)