parrotcode: user interface to Perl-Compatible Regular Expression library | |
Contents | Libraries |
pcre.pir - user interface to Perl-Compatible Regular Expression library
load_bytecode 'library/pcre.pir'
lib = pcre_init()
func = find_global 'PCRE', 'compile'
( regex, error, errptr )= func( pat, options )
func = find_global 'PCRE', 'match'
( ok, result )= func( regex, string, start, options )
func = find_global 'PCRE', 'dollar'
match = func( string, ok, result, i )
This is the user interface to PCRE. Use this to initialize the library, compile regexes, match against strings, and return the results. All functions are found in the 'PCRE' namespace.
The NCI interface is contained in libpcre.pir.
None known, but this hasn't been well tested. This interface is designed to work on all platforms where PCRE and parrot are supported, but has not been tested on all of them. Send bug reports to <parrotbug@parrotcode.org<gt>
pcre.pir, libpcre.pir
pcre(3)
Original code by Leo Toetsch, updated by Jerry Gay <jerry dot gay at gmail dot com<gt>
Hey! The above document had some coding errors, which are explained below:
|