vamtiger-regex-period
A Regular Expression to Match a Period Character.
Last updated 2 years ago by vamtiger-project .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install vamtiger-regex-period 
SYNC missed versions from official npm registry.

VAMTIGER Regex Period

A regular expression to match a period character(s) for a defined input string.

Installation

VAMTIGER Regex Period can be installed using npm or yarn:

npm i --save vamtiger-regex-period

or

yarn add vamtiger-regex-period

Usage

Import or require a referece to VAMTIGER Regex Period:

/// <reference path="../node_modules/vamtiger-regex-period/build/index.d.ts"/>
import { regex } from 'vamtiger-regex-period';

or

const { regex } = require('vamtiger-regex-period');

VAMTIGER Regex Period can then be used to match a period:

const string = 'perion in then . middle';
const match = string.match(regex);


/**
 * if (match) {
 *     // Yep, the input string contains a period
 * }
 **/

Other regular expressions include:

  • globalRegex
  • multilineRegex
  • globalMultilineRegex
import { regex, globalRegex, multilineRegex, globalMultilineRegex } from 'vamtiger-regex-period';

const string = '1.2.3';
const multiLineString = `
    1.2
    3.4
`;

string.split(regex); // [ '1', '2', '3' ]
string.replace(regex, '*'); // '1*2.3'
string.replace(globalRegex, '*'); // '1*2*3'
multiLineString.replace(multilineRegex, '*'); // '\n    1*2\n    3.4\n'
multiLineString.replace(globalMultilineRegex, '*'); // '\n    1*2\n    3*4\n'

Current Tags

  • 0.0.21                                ...           latest (2 years ago)

15 Versions

  • 0.0.21                                ...           2 years ago
  • 0.0.20                                ...           2 years ago
  • 0.0.18                                ...           2 years ago
  • 0.0.17                                ...           2 years ago
  • 0.0.16                                ...           2 years ago
  • 0.0.15                                ...           2 years ago
  • 0.0.10                                ...           2 years ago
  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (1)
Dev Dependencies (9)

Copyright 2014 - 2017 © taobao.org |