1 # astral-regex [![Build Status](https://travis-ci.org/kevva/astral-regex.svg?branch=master)](https://travis-ci.org/kevva/astral-regex)
3 > Regular expression for matching [astral symbols](https://everything2.com/title/astral+plane)
9 $ npm install astral-regex
16 const astralRegex = require('astral-regex');
18 astralRegex({exact: true}).test('🦄');
21 'foo 🦄 💩 bar'.match(astralRegex());
28 ### astralRegex([options])
30 Returns a `RegExp` for matching astral symbols.
39 Default: `false` *(Matches any astral symbols in a string)*
41 Only match an exact string. Useful with `RegExp#test()` to check if a string is a astral symbol.
46 MIT © [Kevin Mårtensson](https://github.com/kevva)