Exceptions
Error_In_Regexp |
Exception raised when an error is found in the regular expression
|
|
Type Summary
|
Other Items:
|
type Regexp is private;
|
Important note : This package was mainly intended to match regular
expressions against file names. The whole string has to match the
regular expression. If only a substring matches, then the function
Match will return False.
Private type used to represent a regular expression
|
|
function Compile
(Pattern : String;
Glob : Boolean := False;
Case_Sensitive : Boolean := True)
return Regexp;
|
Compiles a regular expression S. If the syntax of the given
expression is invalid (does not match above grammar, Error_In_Regexp
is raised. If Glob is True, the pattern is considered as a 'globbing
pattern', that is a pattern as given by the second grammar above
|
|
function Match (S : String; R : Regexp) return Boolean;
|
True if S matches R, otherwise False. Raises Constraint_Error if
R is an uninitialized regular expression value.
|
|
|
private
|