Note: This is taken from the Chicken Wiki, where a more recent version could be available.
Provides access to PCRE structures beyond that of the regex unit.
There are two extensions in this egg - regex-extras) & regex-chardefs.
The regex-extras extension provides access to PCRE data structures:
The regex-chardefs extension allows an override of the character definitions.
<procedure>(regexp-extra-info-set! REGEXP EXTRA-INFO-SYMBOL EXTRA-INFO-VALUE ...)</procedure>
Sets the compiled PCRE regular expression extra-info structure fields.
EXTRA-INFO-FIELD is an Extra Info Field Symbol.
EXTRA-INFO-VALUE is an object of appropriate type.
<procedure>(regexp-extra-info REGEXP EXTRA-INFO-SYMBOL ...)</procedure>
Returns a list of the compiled PCRE regular expression extra-info structure fields.
<procedure>(regexp-options-set! REGEXP OPTION-SYMBOL ...)</procedure>
Sets the compiled PCRE regular expression options.
<procedure>(regexp-options REGEXP | OPTION-BITS)</procedure>
Returns a list of compiled PCRE regular expression options.
OPTION-BITS is an integer.
<procedure>(regexp-info REGEXP [FULLINFO-SYMBOL] ...)</procedure>
Returns a list of compiled PCRE regular expression fullinfo fields.
Returns a list of the compiled PCRE regular expression nametable fields, (NAME INDEX CC).
<procedure>(regex-build-config-info [CONFIG-INFO-SYMBOL] ...)</procedure>
Returns a list of the PCRE build configuration fields.
<procedure>(regex-chardef-set! CHARDEFS-TABLE CHAR/INDEX CHARDEF-VECTOR)</procedure>
Sets the character definition for the CHAR or at the INDEX in the CHARDEFS-TABLE to the new character definition, CHARDEF-VECTOR.
The CHARDEF-VECTOR is a character definition vector where:
<procedure>(regex-chardefs-update! CHARDEFS-TABLE CHARDEFS-VECTOR)</procedure>
Updates the CHARDEFS-TABLE with the new character definitions, CHARDEFS-VECTOR.
The CHARDEFS-VECTOR is a character definitions vector. Each of the 256 elements is either #f, for no definition change, or a character definition vector, as above.
Returns a character definitions vector, as above.
Copyright © 2008 Kon Lovett. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED ASIS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.