https://github.com/shelfio/quotation-marks-regex
Regular expression for matching quotation marks
https://github.com/shelfio/quotation-marks-regex
npm-package
Last synced: 9 months ago
JSON representation
Regular expression for matching quotation marks
- Host: GitHub
- URL: https://github.com/shelfio/quotation-marks-regex
- Owner: shelfio
- License: mit
- Created: 2019-02-07T11:06:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-19T01:06:52.000Z (9 months ago)
- Last Synced: 2025-04-19T10:27:30.106Z (9 months ago)
- Topics: npm-package
- Language: JavaScript
- Size: 102 KB
- Stars: 0
- Watchers: 21
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# quotation-marks-regex [](https://circleci.com/gh/shelfio/quotation-marks-regex/tree/master)  [](https://www.npmjs.com/package/@shelf/quotation-marks-regex)
> Regular expression for matching quotation marks ([source](https://en.wikipedia.org/wiki/Quotation_mark#Summary_table))
## Install
```
$ yarn add @shelf/quotation-marks-regex
```
## Usage
```js
const regex = require('@shelf/quotation-marks-regex');
const input = `"hello" 'hello' ,hello‘ «hello» ”hello” “hello“ ’hello’ ‚hello‛ „hello„ ‹hello›`;
// strip all quotation marks
const output = input.replace(new RegExp(regex, 'g'), '');
// => hello hello hello hello hello hello hello hello hello hello hello
```
## Publish
```sh
$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags
```
## License
MIT © [Shelf](https://shelf.io)