Regular expression which matches a string with no 4-byte characters
npm install non-4byte-chars-regex



Regular expression which matches a string with no 4-byte characters
``javascript`
/^(?:[\0-\uD7FF\uE000-\uFFFF]|\uD800-\uDBFF|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*$/
``
npm install non-4byte-chars-regex
``
bower install non-4byte-chars-regex
Type: RegExp
`javascript
import non4byteCharsRegex from 'non-4byte-chars-regex';
non4byteCharsRegex.test('foo'); //=> true
non4byteCharsRegex.test('barš£baz'); //=> false
non4byteCharsRegex.test('å'); //=> true
non4byteCharsRegex.test('š ®·'); //=> false
``