thipages / stringpattern
简单字符串模式识别
v0.4.1
2020-08-12 10:03 UTC
Requires
- ext-mbstring: *
This package is auto-updated.
Last update: 2024-09-12 18:27:49 UTC
README
简单字符串模式识别
安装
composer require thipages\stringpattern
使用
$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)
序列语法是
- N代表数字
- A代表字母(如果设置了
$accents
为true
,则包括带重音的字母) - 代表任何非字母数字字符的字符
示例
用例
查找/检查数据源列格式