PHP Classes

File: test/php/output.txt

Recommend this page to a friend!
  Classes of Nikos M.   PHP Regex Analyzer and Composer   test/php/output.txt   Download  
File: test/php/output.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: PHP Regex Analyzer and Composer
Analyze and compose regular expressions
Author: By
Last change:
Date: 4 years ago
Size: 6,654 bytes
 

Contents

Class file image Download
Regex.VERSION = 1.1.0 Testing Regex.Composer =============================================================== Partial : [_a-z][_a-z0-9]* Composed : /^(?:[_a-z][_a-z0-9]*|(\*\*aabb\*\*).\s|\D+)*?\1$/i Expected : /^(?:[_a-z][_a-z0-9]*|(\*\*aabb\*\*).\s|\D+*?)\1$/i Output : stdClass Object ( [source] => ^(?:[_a-z][_a-z0-9]*|(\*\*aabb\*\*).\s|\D+)*?\1$ [flags] => i [groups] => Array ( [1] => 1 [token] => 1 ) [pattern] => /^(?:[_a-z][_a-z0-9]*|(\*\*aabb\*\*).\s|\D+)*?\1$/i ) =============================================================== Testing Regex.Analyzer =============================================================== Input : /(?P<named_group>[abcde]+)fgh(?P=named_group)(?# a comment)/i Regular Expression : (?P<named_group>[abcde]+)fgh(?P=named_group)(?# a comment) Regular Expression Flags : i Reconstructed Regular Expression : ([abcde]+)fgh\1 =============================================================== Regular Expression Syntax Tree : Array ( [type] => Sequence [value] => Array ( [0] => Array ( [type] => Group [value] => Array ( [type] => Sequence [value] => Array ( [0] => Array ( [type] => Quantifier [value] => Array ( [type] => CharacterGroup [value] => Array ( [0] => Array ( [type] => Characters [value] => Array ( [0] => a [1] => b [2] => c [3] => d [4] => e ) ) ) ) [flags] => stdClass Object ( [MatchOneOrMore] => 1 [min] => 1 [max] => -1 [isGreedy] => 1 ) ) ) ) [flags] => stdClass Object ( [NamedGroup] => 1 [GroupName] => named_group [GroupIndex] => 1 ) ) [1] => Array ( [type] => String [value] => fgh ) [2] => Array ( [type] => Special [value] => 1 [flags] => stdClass Object ( [BackReference] => 1 [GroupName] => named_group [GroupIndex] => 1 ) ) [3] => Array ( [type] => Comment [value] => a comment ) ) ) =============================================================== Regular Expression (Named) Matched Groups : Array ( [1] => 1 [named_group] => 1 ) =============================================================== Regular Expression Peek Characters : Array ( [positive] => Array ( [0] => a [1] => b [2] => c [3] => d [4] => e [5] => A [6] => B [7] => C [8] => D [9] => E ) [negative] => Array ( ) ) =============================================================== Regular Expression Minimum / Maximum Length : Array ( [minimum] => 5 [maximum] => unlimited ) =============================================================== Regular Expression Sample Match Strings : Array ( [0] => Array ( [sample] => adDAFGHadDA [match] => yes [groups] => Array ( [1] => adDA [named_group] => adDA ) ) [1] => Array ( [sample] => BEECFGHBEEC [match] => yes [groups] => Array ( [1] => BEEC [named_group] => BEEC ) ) [2] => Array ( [sample] => CcCEFGHCcCE [match] => yes [groups] => Array ( [1] => CcCE [named_group] => CcCE ) ) [3] => Array ( [sample] => EbDfghEbD [match] => yes [groups] => Array ( [1] => EbD [named_group] => EbD ) ) [4] => Array ( [sample] => DFGHD [match] => yes [groups] => Array ( [1] => D [named_group] => D ) ) ) ===============================================================