Skip to content

foo99/wave-dash-range

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WaveDashRange

Install

$ composer require foo99/wave-dash-range

Usage

<?php

require 'vendor/autoload.php';

use Foo99\WaveDashRange\WaveDashRange as WaveDash;


$text = "100人〜110人";
$pattern = "/(?<start>\d+)人〜(?<end>\d+)人/u";
$skip = array(100, 101, 102, 103, 104, 105);

$result = WaveDash::range($text, $pattern, 1, $skip); // array(106, 107, 108, 109, 110)

Test

$ vendor/bin/phpunit tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages