multichar-regex

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i multichar-regex

Weekly Downloads

17,040

Version

2.0.0

License

MIT

Last publish

Collaborators

  • michaelrhodes