rgb-regex

WebJar for rgb-regex

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

rgb-regex
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

rgb-regex
WebJar for rgb-regex
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/regexhq/rgb-regex

Download rgb-regex

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

rgb-regex

Build Status

Regex for RGB color strings.

Installation

npm install --save rgb-regex

Usage

var rgbRegex = require('rgb-regex');

rgbRegex({ exact: true }).test('rgb(12, 34, 56)');  // => true
rgbRegex({ exact: true }).test('unicorns');         // -> false
rgbRegex({ exact: true }).test('rgb(,,)');          // => false

rgbRegex().exec('rgb(12, 34, 56)');
// => [
//  '12',
//  '34',
//  '56',
//  index: 0,
//  input: 'rgb(12,34,56)'
// ]

'rgb(12, 34, 56) cats and dogs'.match(rgbRegex());
// = ['rgb(12, 34, 56)']

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander (@4lpine).


This package was initially generated with yeoman and the p generator.

org.webjars.npm

RegexHQ

Collaboration on a world-wide community-driven collection of RegExp patterns and tools that can make our life easier.

Versions

Version
1.0.1