D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
usr
/
share
/
doc
/
pcre-devel
/
Filename :
perltest.txt
back
Copy
The perltest program -------------------- The perltest.pl script tests Perl's regular expressions; it has the same specification as pcretest, and so can be given identical input, except that input patterns can be followed only by Perl's lower case modifiers and certain other pcretest modifiers that are either handled or ignored: /+ recognized and handled by perltest /++ the second + is ignored /8 recognized and handled by perltest /J ignored /K ignored /W ignored /S ignored /SS ignored /Y ignored The pcretest \Y escape in data lines is removed before matching. The data lines are processed as Perl double-quoted strings, so if they contain " $ or @ characters, these have to be escaped. For this reason, all such characters in the Perl-compatible testinput1 file are escaped so that they can be used for perltest as well as for pcretest. The special upper case pattern modifiers such as /A that pcretest recognizes, and its special data line escapes, are not used in the Perl-compatible test file. The output should be identical, apart from the initial identifying banner. The perltest.pl script can also test UTF-8 features. It recognizes the special modifier /8 that pcretest uses to invoke UTF-8 functionality. The testinput4 and testinput6 files can be fed to perltest to run compatible UTF-8 tests. However, it is necessary to add "use utf8; require Encode" to the script to make this work correctly. I have not managed to find a way to handle this automatically. The other testinput files are not suitable for feeding to perltest.pl, since they make use of the special upper case modifiers and escapes that pcretest uses to test certain features of PCRE. Some of these files also contain malformed regular expressions, in order to check that PCRE diagnoses them correctly. Philip Hazel January 2012
Name
Size
Last Modified
Owner
Permissions
Actions
html
Dir
July 28 2023 2:58:41
root
0755
HACKING
23.301
KB
January 31 2014 2:32:54
root
0644
README
44.48
KB
February 10 2015 4:43:29
root
0644
pcre-config.txt
3.072
KB
March 20 2018 10:53:15
root
0644
pcre.txt
496.665
KB
March 20 2018 10:53:16
root
0644
pcredemo.c
15.156
KB
January 31 2014 2:32:54
root
0644
pcregrep.txt
41.267
KB
March 20 2018 10:53:15
root
0644
pcretest.txt
53.189
KB
March 20 2018 10:53:15
root
0644
perltest.txt
1.808
KB
January 31 2014 2:31:54
root
0644
2017 © D7net | D704T team