string-split-by

WebJar for string-split-by

Лицензия

Лицензия

MIT
Группа

Группа

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

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

string-split-by
Последняя версия

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

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

string-split-by
WebJar for string-split-by
Ссылка на сайт

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

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

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

https://github.com/dy/string-split-by

Скачать string-split-by

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : parenthesis jar [3.1.5,4)

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

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

string-split-by unstable Build Status

Split string by a separator with respect to brackets, quotes and escape markers. Optimized version of string-split.

Usage

npm install string-split-by

var split = require('string-split-by')

split('a."b.c".d.{.e.f.g.}.h', '.')
// ['a', '"b.c"', 'd', '{.e.f.g.}', 'h']

split('a."b.c".d.{.e.f.g.}.h', '.', {ignore: '""'})
// ['a', '"b.c"', 'd', '{', 'e', 'f', 'g', '}', 'h']

API

parts = splitBy(string, separator, options?)

Return array with parts split from string by a separator, which can be whether String or RegExp. Options can define:

Option Default Meaning
ignore ['"', "'", '`', '“”', '«»', '[]', '()', '{}'] Avoid splitting content enclosed in the character pairs. Can be a string or a list of strings.
escape true Avoid splitting at the escaped separator, eg. \. won't be separated by '.' separator.

Related

License

© 2018 Dmitry Yv. MIT License

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

Версия
1.0.0