Olin Shivers proposed a "100% solution" for working with regular expressions in Scheme. His solution was only implemented in SCSH. The scsh-regexp egg is a port of Olin's SRE package to other Schemes (currently Chicken and SISC).
The SRE package has two main features: the SRE notation (a Scheme s-expression representation of regular expression strings) and a regexp API. scsh-regexp does not yet support the SRE notation, but implements most of the regexp API (specifically, posix-string->regexp, regexp?, regexp-search, match:start, match:end, match:count, match:substring, match:prefix, match:suffix, match:regexp-for-each, regexp-substitute, regexp-substitute/global, let-match, if-match)
The project homepage contains more details and examples, including information on how to use the package in other Schemes.
Copyright (C) 2006-2007 Dan Muresan (muresan at stanfordalumni dot org) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.