承接 azibom/easy-regex 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

azibom/easy-regex

最新稳定版本:1.0.7

Composer 安装命令:

composer require azibom/easy-regex

包简介

PHP Regular expressions made easy.

README 文档

README

PHP Regular expressions made easy

codecov example workflow License Latest Stable Version PHP version Build Status

Prerequisites

You need them before installing the package.

  • You need PHP 7.2.5 or above
  • You composer 2.3 or above

Installation

composer require azibom/easy-regex

Usage

<?php

require 'vendor/autoload.php';

use Azibom\EasyRegex\Builder;

$builder = new Builder();
$builder
    ->start()
    ->see("http")
    ->maybeSee("s")
    ->see("://")
    ->something()
    ->see(".")
    ->something()
    ->end();

echo $builder->getRegex() . PHP_EOL; 

if ($builder->match("https://google.com")) {
    echo "Match found!" . PHP_EOL;
} else {
    echo "No match." . PHP_EOL;
}

// /^(http)(s)?(\:\/\/)(?:.+)(\.)(?:.+)$/
// Match found!

Roadmap

The goal of this project is to make a complete regex helper library for the PHP language.

Contribution

Any contribution in the form of an issue or a pull request is more than welcome! Also if you have any questions, feel free to create a new issue or comment on existing ones.

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-17