Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/code4mk/lets-regex
Lets learn RegEx ( Regular Expression) with fun . ๐ code4mk
https://github.com/code4mk/lets-regex
regex regular-expression
Last synced: 22 days ago
JSON representation
Lets learn RegEx ( Regular Expression) with fun . ๐ code4mk
- Host: GitHub
- URL: https://github.com/code4mk/lets-regex
- Owner: code4mk
- Created: 2018-04-14T05:48:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-22T03:59:47.000Z (almost 4 years ago)
- Last Synced: 2024-11-13T10:52:38.762Z (3 months ago)
- Topics: regex, regular-expression
- Homepage: https://code4mk.org/javascript-developer/js/regex
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[go to code4mk for better view](https://code4mk.org/javascript-developer/js/regex)
## regex tips
|short | description |
| :------------- | :------------- |
|`^`|start|
|`$`|end|
|`pipe`|or / alternate|
|`*`|0 or more|
|`+`|1 or more|
|`\`|escape specialess|
|`?`|0 or one|
|`{3}`|exact 3|
|`{3,}`|3 or more|
|`{3,5}`|3,4 or 5|
|`()`|group|
|`[]`|set|
|`[^abc]`|not abc|
|`[abc]`|a.b or c|
|`[A-Z]`| uppercase A to Z|
|`[a-z]`| lowercase a to z|
|`[a-zA-Z]`| lowercase and uppercase a to z|
|`[0-9]`|0 to 9|* NB: `pipe` = `|`
## basic 2 regex
|short | description |
| :------------- | :------------- |
|`\n`|newline|
|`\t`|tab|
|`\r`|Carriage return|
|`\f`|Form feed|## character set table
| short | description |
| :------------- | :------------- |
| `\w ` | alphanumeric `[a-zA-Z0-9_]` |
|`\W`| non alphanumeric `[a-zA-Z0-9_]` . [\W] = `[^\w]`|
|`\d`|digit [0-9]|
|`\D`|non digit [0-9]|
|`\s`|whitespace `[\t\n\f\r\p{Z}]`|
|`\S`|non whitespace|## flag
| short | description |
| :------------- | :------------- |
| g | global |
|m| multi-line|
|i|case iยญnseยญnsitive|* [Next](https://github.com/code4mk/lets-regex/blob/master/basic.md)