| 1 |
PCRE version 2.00 24-Sep-1998 |
PCRE version 2.04 19-Feb-1999 |
| 2 |
|
|
| 3 |
/(?<!bar)foo/ |
/(?<!bar)foo/ |
| 4 |
foo |
foo |
| 2748 |
0: b |
0: b |
| 2749 |
*** Failers |
*** Failers |
| 2750 |
No match |
No match |
| 2751 |
|
|
| 2752 |
|
/^(?>(?(1)\.|())[^\W_](?>[a-z0-9-]*[^\W_])?)+$/ |
| 2753 |
|
a |
| 2754 |
|
0: a |
| 2755 |
|
1: |
| 2756 |
|
abc |
| 2757 |
|
0: abc |
| 2758 |
|
1: |
| 2759 |
|
a-b |
| 2760 |
|
0: a-b |
| 2761 |
|
1: |
| 2762 |
|
0-9 |
| 2763 |
|
0: 0-9 |
| 2764 |
|
1: |
| 2765 |
|
a.b |
| 2766 |
|
0: a.b |
| 2767 |
|
1: |
| 2768 |
|
5.6.7 |
| 2769 |
|
0: 5.6.7 |
| 2770 |
|
1: |
| 2771 |
|
the.quick.brown.fox |
| 2772 |
|
0: the.quick.brown.fox |
| 2773 |
|
1: |
| 2774 |
|
a100.b200.300c |
| 2775 |
|
0: a100.b200.300c |
| 2776 |
|
1: |
| 2777 |
|
12-ab.1245 |
| 2778 |
|
0: 12-ab.1245 |
| 2779 |
|
1: |
| 2780 |
|
***Failers |
| 2781 |
|
No match |
| 2782 |
|
\ |
| 2783 |
|
No match |
| 2784 |
|
.a |
| 2785 |
|
No match |
| 2786 |
|
-a |
| 2787 |
|
No match |
| 2788 |
|
a- |
| 2789 |
|
No match |
| 2790 |
|
a. |
| 2791 |
|
No match |
| 2792 |
|
a_b |
| 2793 |
|
No match |
| 2794 |
|
a.- |
| 2795 |
|
No match |
| 2796 |
|
a.. |
| 2797 |
|
No match |
| 2798 |
|
ab..bc |
| 2799 |
|
No match |
| 2800 |
|
the.quick.brown.fox- |
| 2801 |
|
No match |
| 2802 |
|
the.quick.brown.fox. |
| 2803 |
|
No match |
| 2804 |
|
the.quick.brown.fox_ |
| 2805 |
|
No match |
| 2806 |
|
the.quick.brown.fox+ |
| 2807 |
|
No match |
| 2808 |
|
|
| 2809 |
|
/(?>.*)(?<=(abcd|wxyz))/ |
| 2810 |
|
alphabetabcd |
| 2811 |
|
0: alphabetabcd |
| 2812 |
|
1: abcd |
| 2813 |
|
endingwxyz |
| 2814 |
|
0: endingwxyz |
| 2815 |
|
1: wxyz |
| 2816 |
|
*** Failers |
| 2817 |
|
No match |
| 2818 |
|
a rather long string that doesn't end with one of them |
| 2819 |
|
No match |
| 2820 |
|
|
| 2821 |
|
/word (?>(?:(?!otherword)[a-zA-Z0-9]+ ){0,30})otherword/ |
| 2822 |
|
word cat dog elephant mussel cow horse canary baboon snake shark otherword |
| 2823 |
|
0: word cat dog elephant mussel cow horse canary baboon snake shark otherword |
| 2824 |
|
word cat dog elephant mussel cow horse canary baboon snake shark |
| 2825 |
|
No match |
| 2826 |
|
|
| 2827 |
|
/word (?>[a-zA-Z0-9]+ ){0,30}otherword/ |
| 2828 |
|
word cat dog elephant mussel cow horse canary baboon snake shark the quick brown fox and the lazy dog and several other words getting close to thirty by now I hope |
| 2829 |
|
No match |
| 2830 |
|
|
| 2831 |
/ End of test input / |
/ End of test input / |
| 2832 |
|
|