unicoderegexp

WebJar for unicoderegexp

Лицензия

Лицензия

BSD 3-Clause
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

unicoderegexp
Последняя версия

Последняя версия

0.4.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

unicoderegexp
WebJar for unicoderegexp
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/One-com/unicoderegexp

Скачать unicoderegexp

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/unicoderegexp/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>unicoderegexp</artifactId>
    <version>0.4.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/unicoderegexp/
implementation 'org.webjars.npm:unicoderegexp:0.4.1'
// https://jarcasting.com/artifacts/org.webjars.npm/unicoderegexp/
implementation ("org.webjars.npm:unicoderegexp:0.4.1")
'org.webjars.npm:unicoderegexp:jar:0.4.1'
<dependency org="org.webjars.npm" name="unicoderegexp" rev="0.4.1">
  <artifact name="unicoderegexp" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='unicoderegexp', version='0.4.1')
)
libraryDependencies += "org.webjars.npm" % "unicoderegexp" % "0.4.1"
[org.webjars.npm/unicoderegexp "0.4.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

unicoderegexp

Various regular expressions for unicode character classes (letter, punctuation, number, etc.) and helper functions for composing them.

Used by the purify library.

The module exports a bunch of useful RegExps each with a single character class in them:

  • letter
  • mark
  • number
  • punctuation
  • symbol
  • separator
  • other
  • visible
  • printable
unicodeRegExp.visible.test("a"); // true
unicodeRegExp.visible.test(" "); // false
unicodeRegExp.visible.test("\u00a0"); // false -- a non-breaking space is not visible

To validate an entire string you need to build a new RegExp:

var visibleStringRegExp = new RegExp('^' + unicodeRegExp.visible.source + '*$');
visibleStringRegExp.test("foobar"); // true
visibleStringRegExp.test("foo bar"); // false because of the space

unicodeRegExp.removeCharacterFromCharacterClassRegExp(/[æøå]/, 'æ'); // /[\u00f8\u00e5]/
unicodeRegExp.spliceCharacterClassRegExps(/[a-b]/, /[c-d]/); // /[a-bc-d]/

The info about which characters belong to which classes was taken from the XRegExp library and its Unicode plugin.

License

Unicoderegexp is licensed under a standard 3-clause BSD license -- see the LICENSE file for details.

org.webjars.npm

one.com

Версии библиотеки

Версия
0.4.1