execall

WebJar for execall

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

execall
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

execall
WebJar for execall
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/execall

Download execall

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : clone-regexp jar [2.1.0,3)

Project Modules

There are no modules declared in this project.

execall Build Status

Find multiple RegExp matches in a string

Instead of having to iterate over RegExp#exec, immutable, and with a nicer result format.

Install

$ npm install execall

Usage

const execall = require('execall');

execall(/(\d+)/g, '$200 and $400');
/*
[
	{
		match: '200',
		subMatches: ['200'],
		index: 1
	},
	{
		match: '400',
		subMatches: ['400'],
		index: 10
	}
]
*/

API

execall(regexp, string)

Returns an object[] with a match, sub-matches, and index.

regexp

Type: RegExp

Regular expression to match against the string.

string

Type: string

Related

License

MIT © Sindre Sorhus

Versions

Version
2.0.0
1.0.0