Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages