1 |
Testing Perl-Compatible Regular Expressions |
Testing Perl-Compatible Regular Expressions |
2 |
PCRE version 1.00 18-Nov-1997 |
PCRE version 1.05 23-Dec-1997 |
3 |
|
|
4 |
/(a)b|/ |
/(a)b|/ |
5 |
Identifying subpattern count = 1 |
Identifying subpattern count = 1 |
566 |
12345+ |
12345+ |
567 |
No match |
No match |
568 |
|
|
569 |
|
/([a]*)*/ |
570 |
|
Failed: operand of unlimited repeat could match the empty string at offset 6 |
571 |
|
|
572 |
|
/([ab]*)*/ |
573 |
|
Failed: operand of unlimited repeat could match the empty string at offset 7 |
574 |
|
|
575 |
|
/([^a]*)*/ |
576 |
|
Failed: operand of unlimited repeat could match the empty string at offset 7 |
577 |
|
|
578 |
|
/([^ab]*)*/ |
579 |
|
Failed: operand of unlimited repeat could match the empty string at offset 8 |
580 |
|
|
581 |
|
/([a]*?)*/ |
582 |
|
Failed: operand of unlimited repeat could match the empty string at offset 7 |
583 |
|
|
584 |
|
/([ab]*?)*/ |
585 |
|
Failed: operand of unlimited repeat could match the empty string at offset 8 |
586 |
|
|
587 |
|
/([^a]*?)*/ |
588 |
|
Failed: operand of unlimited repeat could match the empty string at offset 8 |
589 |
|
|
590 |
|
/([^ab]*?)*/ |
591 |
|
Failed: operand of unlimited repeat could match the empty string at offset 9 |
592 |
|
|
593 |
|
/(?>a*)*/X |
594 |
|
Failed: nothing to repeat at offset 6 |
595 |
|
|
596 |
|
/((?>a*))*/X |
597 |
|
Failed: operand of unlimited repeat could match the empty string at offset 8 |
598 |
|
|
599 |
|
/((?>a*?))*/X |
600 |
|
Failed: operand of unlimited repeat could match the empty string at offset 9 |
601 |
|
|
602 |
|
/)/ |
603 |
|
Failed: unmatched brackets at offset 0 |
604 |
|
|
605 |
|
/a[]b/ |
606 |
|
Failed: missing terminating ] for character class at offset 4 |
607 |
|
|
608 |
|
/[^a]/ |
609 |
|
Identifying subpattern count = 0 |
610 |
|
No options |
611 |
|
No first char |
612 |
|
\Iaaaabcd |
613 |
|
0: b |
614 |
|
\IaaAabcd |
615 |
|
0: b |
616 |
|
|
617 |
|
/[^az]/ |
618 |
|
Identifying subpattern count = 0 |
619 |
|
No options |
620 |
|
No first char |
621 |
|
\Iaaaabcd |
622 |
|
0: b |
623 |
|
\IaaAabcd |
624 |
|
0: b |
625 |
|
|
626 |
|
/[^az]/ |
627 |
|
Identifying subpattern count = 0 |
628 |
|
No options |
629 |
|
No first char |
630 |
|
\Izazabcd |
631 |
|
0: b |
632 |
|
\IAaZabcd |
633 |
|
0: b |
634 |
|
|
635 |
|
/[^aeiou ]{3,}/ |
636 |
|
Identifying subpattern count = 0 |
637 |
|
No options |
638 |
|
No first char |
639 |
|
co-processors, and for |
640 |
|
0: -pr |
641 |
|
\Ico-processors, and for |
642 |
|
0: -pr |
643 |
|
|
644 |
/ End of test input / |
/ End of test input / |
645 |
Identifying subpattern count = 0 |
Identifying subpattern count = 0 |
646 |
No options |
No options |