Website Structure

This commit is contained in:
supalerk-ar66 2026-01-13 10:46:40 +07:00
parent 62812f2090
commit 71f0676a62
22365 changed files with 4265753 additions and 791 deletions

67
Frontend-Learner/node_modules/clean-regexp/readme.md generated vendored Normal file
View file

@ -0,0 +1,67 @@
# clean-regexp [![Build Status](https://travis-ci.org/SamVerschueren/clean-regexp.svg?branch=master)](https://travis-ci.org/SamVerschueren/clean-regexp)
> Clean up regular expressions
## Install
```
$ npm install clean-regexp
```
## Usage
```js
const cleanRegexp = require('clean-regexp');
cleanRegexp('[0-9]');
//=> '\\d'
cleanRegexp('[^0-9]');
//=> '\\D'
cleanRegexp('[a-zA-Z0-9_]');
//=> '\\w'
cleanRegexp('[a-z0-9_]', 'i');
//=> '\\w'
cleanRegexp('[^a-zA-Z0-9_]');
//=> '\\W'
cleanRegexp('[^a-z0-9_]', 'i');
//=> '\\W'
cleanRegexp('[a-zA-Z\\d_]');
//=> '\\w'
cleanRegexp('[^a-zA-Z\\d_]');
//=> '\\W'
cleanRegexp('[0-9]+\\.[a-zA-Z0-9_]?');
//=> '\\d+\\.\\w'
```
## API
### cleanRegexp(regexp, [flags])
#### regexp
Type: `string`
Text of the regular expression.
#### flags
Type: `string`<br>
Default: `''`
Flags of the regular expression.
## License
MIT © [Sam Verschueren](https://github.com/SamVerschueren)