2017 © Pedro Peláez
 

library patterns

Pattern matching

image

xp-framework/patterns

Pattern matching

  • Sunday, September 24, 2017
  • by thekid
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1,451 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 10 % Grown

The README.md

Pattern matching

Build status on GitHub XP Framework Module BSD Licence Requires PHP 7.0+ Supports PHP 8.0+ Latest Stable Version, (*1)

Regular expressions and text scanning, (*2)

Example

use text\regex\Pattern;

$pattern= Pattern::compile('([w]{3}\.)?example\.(com|net|org)');
if ($pattern->matches($input)) {
  // Looks like an example domain
}

$result= $pattern->match($input);
$group= $result->group(0);  // [ "www.example.com", "www.", "www", "com" ]

Further reading

The Versions

24/09 2017

dev-master

9999999-dev http://xp-framework.net/

Pattern matching

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

24/09 2017

v8.0.0

8.0.0.0 http://xp-framework.net/

Pattern matching

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

16/01 2017

v7.1.1

7.1.1.0 http://xp-framework.net/

Pattern matching

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

29/08 2016

v7.1.0

7.1.0.0 http://xp-framework.net/

Pattern matching

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

22/02 2016

v7.0.0

7.0.0.0 http://xp-framework.net/

Pattern matching

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

08/12 2015

v6.6.0

6.6.0.0 http://xp-framework.net/

Pattern matching

  Sources   Download

BSD-3-Clause

The Requires

 

module xp