Download the PHP package xp-lang/php-pattern-operator without Composer
On this page you can find all versions of the php package xp-lang/php-pattern-operator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download xp-lang/php-pattern-operator
More information about xp-lang/php-pattern-operator
Files in xp-lang/php-pattern-operator
Download xp-lang/php-pattern-operator
More information about xp-lang/php-pattern-operator
Files in xp-lang/php-pattern-operator
Vendor xp-lang
Package php-pattern-operator
Short Description Pattern operator for PHP
License BSD-3-Clause
Homepage http://xp-framework.net/
Package php-pattern-operator
Short Description Pattern operator for PHP
License BSD-3-Clause
Homepage http://xp-framework.net/
Please rate this library. Is it a good library?
Informations about the package php-pattern-operator
Pattern operator for PHP
Plugin for the XP Compiler which adds an ~
infix operator to the PHP language.
Examples
The pattern operator treats the following expression as a regular expression and returns the matches it generates:
The pattern is passed to preg_match, so the above is equivalent of writing the following:
Installation
After installing the XP Compiler into your project, also include this plugin.
No further action is required.
See also
- https://github.com/xp-framework/compiler/issues/130 Motivation
- https://www.perltutorial.org/perl-regular-expression/
- https://stackoverflow.com/questions/19441521/bash-regex-operator
- https://puppet.com/docs/puppet/latest/lang_expressions.html (
=~
and!~
) - https://github.com/kasei/SwiftRegex and https://github.com/johnno1962/SwiftRegex
- https://externals.io/message/4825 (PHP internals discussion, 2003)
All versions of php-pattern-operator with dependencies
PHP Build Version
Package Version
Requires
xp-framework/core Version
^12.0 | ^11.0 | ^10.0
xp-framework/compiler Version ^9.0 | ^8.0 | ^7.0
php Version >=7.4.0
xp-framework/compiler Version ^9.0 | ^8.0 | ^7.0
php Version >=7.4.0
The package xp-lang/php-pattern-operator contains the following files
Loading the files please wait ....