🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

multichar-regex

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multichar-regex

a regular expression that matches all the surrogate pairs and combining-marked characters in a string

2.0.0
latest
Source
npm
Version published
Weekly downloads
20K
2.93%
Maintainers
1
Weekly downloads
 
Created
Source

multichar-regex

This is a regular expression that matches all the surrogate pairs and combining-marked characters in a string.

Build status

Install

$ npm install multichar-regex

Usage

// If you want to use the raw regular expression, you can…
var regex = require('multichar-regex')

// …but this helper function might be nicer to use.
var matches = require('multichar-regex/matches')

matches('oh hi, doggy 🐶 meet the sun: ☀️')
// index: value
=> { '13': '🐶', '30': '☀️' }

License

MIT

Keywords

regex

FAQs

Package last updated on 16 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts