sebastiansulinski/regex-kit
最新稳定版本:1.0.1
Composer 安装命令:
composer require sebastiansulinski/regex-kit
包简介
Regex Kit : purpose-made methods for easy string replacement
README 文档
README
Regex Kit : purpose-made handfull of methods for easy string replacement
Usage
Example 1
Find uri's and replace them with anchor tags.
use SSD\RegexKit\Factory;
echo Factory::anchor(
'Visit documentation at http://github.com or for more info use http://google.com',
[
'target' => '_blank'
]
);
Example 2
Find @User and replace them with anchor tags.
use SSD\RegexKit\Factory;
echo Factory::atUser(
'Hey @JohnDoe, thanks for sorting this out!',
'/user/',
[
'target' => '_blank',
'title' => 'View user profile'
]
);
统计信息
- 总下载量: 171
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-01