pnuts.regex module

pnuts.regex module provides regular expression functions without depending on a particular Regex API.

On J2SE1.4, the standard regular expression API is used by default. On older versions of JRE, a third party regular expression package is needed.

If the standard property pnuts.regex.module is defined at startup time, the specified module is used as the implementation of pnuts.regex module. Otherwise, it searches an available Regex API from the predefined list, which is defined a property file, "pnuts/regex/regex.properties".

Regular Expression API Module Name
JSR51 (J2SE1.4.X) pnuts.regex.jsr51
JRegex jregex
Jakarta ORO jakarta-oro
Regex4J regex4j
Jakarta Regexp jakarta-regexp
GNU Regexp gnu-regexp
Regexp API in Xerces XML parser xerces-regexp

Function Index