thipages/stringpattern
Composer 安装命令:
composer require thipages/stringpattern
包简介
Simple String Pattern Recognition
README 文档
README
Simple String Pattern Recognition
Installation
composer require thipages\stringpattern
Usage
$norm=SPattern::normalize ($string, $accents=true) // $norm[0] gives the length // $norm[1] gives a sequence // $norm[2] gives a sequence with occurrence (sequence_occ)
sequence syntax is
- N for numeric
- A for alphabet (including accented letters is
$accentsis set totrue) - the character for any non alphanumeric character
Examples
| input | sequence | sequence_occ |
|---|---|---|
| 123 | N | N3 |
| 123.1 | N.N | N3.1N1 |
| 12,1 | N,N | N2,1N1 |
| T23@mail.com | AN@A.A | A1N2@1A4.1A3 |
| input | sequence | sequence_occ | accents |
|---|---|---|---|
| rémanent | A | A8 | true |
| rémanent | AéA | A1é1A6 | false |
Use Case
Find/Check data source column format
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-06