thipages/stringpattern 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 $accents is set to true)
  • 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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-06-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固