Top Method Summary
Options Name Purpose
CHARACTER Escape (character) Escapes all regex metacharacters in the input string so that it can be used as a literal pattern Notes : Metacharacters escaped: backslash . * + ? ^ $ braces [ ] | ( ) @param pcInput The raw string to escape @return The input with all metacharacters preceded by a backslash */
Consultingwerk.Framework.RegEx.RegExMatch Match (character, character) Returns the first match of the pattern anywhere in the input Notes : Converts the character input to longchar and delegates. Returns ? (unknown object reference) when no match is found. @param pcPattern The regular expression pattern @param pcInput The input string to search @return A RegExMatch for the first match, or ? if no match found */
Consultingwerk.Framework.RegEx.RegExMatch Match (character, character, RegExOptions) Returns the first match of the pattern anywhere in the input Notes : Converts the character input to longchar and delegates. Returns ? (unknown object reference) when no match is found. @param pcPattern The regular expression pattern @param pcInput The input string to search @param poOptions Matching options (case-insensitive, ignore whitespace) @return A RegExMatch for the first match, or ? if no match found */
Consultingwerk.Framework.RegEx.RegExMatch Match (character, longchar) Returns the first match of the pattern anywhere in the longchar input Notes : Returns ? (unknown object reference) when no match is found. @param pcPattern The regular expression pattern @param plcInput The longchar input to search @return A RegExMatch for the first match, or ? if no match found */
Consultingwerk.Framework.RegEx.RegExMatch Match (character, longchar, RegExOptions) Returns the first match of the pattern anywhere in the longchar input Notes : Returns ? (unknown object reference) when no match is found. @param pcPattern The regular expression pattern @param plcInput The longchar input to search @param poOptions Matching options (case-insensitive, ignore whitespace) @return A RegExMatch for the first match, or ? if no match found */
Consultingwerk.Framework.RegEx.RegExMatch MatchAll (character, character) Returns all non-overlapping matches of the pattern in the input Notes : Converts the character input to longchar and delegates. Returns an indeterminate extent when no matches are found. @param pcPattern The regular expression pattern @param pcInput The input string to search @return An extent of RegExMatch objects for every non-overlapping match */
Consultingwerk.Framework.RegEx.RegExMatch MatchAll (character, character, RegExOptions) Returns all non-overlapping matches of the pattern in the input Notes : Converts the character input to longchar and delegates. Returns an indeterminate extent when no matches are found. @param pcPattern The regular expression pattern @param pcInput The input string to search @param poOptions Matching options (case-insensitive, ignore whitespace) @return An extent of RegExMatch objects for every non-overlapping match */
Consultingwerk.Framework.RegEx.RegExMatch MatchAll (character, longchar) Returns all non-overlapping matches of the pattern in the longchar input Notes : Returns an indeterminate extent when no matches are found. @param pcPattern The regular expression pattern @param plcInput The longchar input to search @return An extent of RegExMatch objects for every non-overlapping match */
Consultingwerk.Framework.RegEx.RegExMatch MatchAll (character, longchar, RegExOptions) Returns all non-overlapping matches of the pattern in the longchar input Notes : Returns an indeterminate extent when no matches are found. @param pcPattern The regular expression pattern @param plcInput The longchar input to search @param poOptions Matching options (case-insensitive, ignore whitespace) @return An extent of RegExMatch objects for every non-overlapping match */
CHARACTER Replace (character, character, character) Replaces the first occurrence of the pattern with a replacement string Notes : Converts the character input to longchar and delegates. The replacement string may contain back-references: $1 or \1 for capture group 1, $0 or $& for the entire match. @param pcPattern The regular expression pattern @param pcInput The input string @param pcReplacement The replacement string (may contain back-references) @return The input string with the first match replaced */
CHARACTER Replace (character, character, character, RegExOptions) Replaces the first occurrence of the pattern with a replacement string Notes : Converts the character input to longchar and delegates. The replacement string may contain back-references: $1 or \1 for capture group 1, $0 or $& for the entire match. @param pcPattern The regular expression pattern @param pcInput The input string @param pcReplacement The replacement string (may contain back-references) @param poOptions Matching options (case-insensitive, ignore whitespace) @return The input string with the first match replaced */
LONGCHAR Replace (character, longchar, character) Replaces the first occurrence of the pattern in the longchar input Notes : The replacement string may contain back-references: $1 or \1 for capture group 1, $0 or $& for the entire match. @param pcPattern The regular expression pattern @param plcInput The longchar input @param pcReplacement The replacement string (may contain back-references) @return The longchar input with the first match replaced */
LONGCHAR Replace (character, longchar, character, RegExOptions) Replaces the first occurrence of the pattern in the longchar input Notes : The replacement string may contain back-references: $1 or \1 for capture group 1, $0 or $& for the entire match. @param pcPattern The regular expression pattern @param plcInput The longchar input @param pcReplacement The replacement string (may contain back-references) @param poOptions Matching options (case-insensitive, ignore whitespace) @return The longchar input with the first match replaced */
CHARACTER ReplaceAll (character, character, character) Replaces all non-overlapping occurrences of the pattern Notes : Converts the character input to longchar and delegates. The replacement string may contain back-references: $1 or \1 for capture group 1, $0 or $& for the entire match. @param pcPattern The regular expression pattern @param pcInput The input string @param pcReplacement The replacement string (may contain back-references) @return The input string with all matches replaced */
CHARACTER ReplaceAll (character, character, character, RegExOptions) Replaces all non-overlapping occurrences of the pattern Notes : Converts the character input to longchar and delegates. The replacement string may contain back-references: $1 or \1 for capture group 1, $0 or $& for the entire match. @param pcPattern The regular expression pattern @param pcInput The input string @param pcReplacement The replacement string (may contain back-references) @param poOptions Matching options (case-insensitive, ignore whitespace) @return The input string with all matches replaced */
LONGCHAR ReplaceAll (character, longchar, character) Replaces all non-overlapping occurrences of the pattern in the longchar input Notes : The replacement string may contain back-references: $1 or \1 for capture group 1, $0 or $& for the entire match. @param pcPattern The regular expression pattern @param plcInput The longchar input @param pcReplacement The replacement string (may contain back-references) @return The longchar input with all matches replaced */
LONGCHAR ReplaceAll (character, longchar, character, RegExOptions) Replaces all non-overlapping occurrences of the pattern in the longchar input Notes : The replacement string may contain back-references: $1 or \1 for capture group 1, $0 or $& for the entire match. @param pcPattern The regular expression pattern @param plcInput The longchar input @param pcReplacement The replacement string (may contain back-references) @param poOptions Matching options (case-insensitive, ignore whitespace) @return The longchar input with all matches replaced */
LOGICAL Test (character, character) Tests whether the pattern matches anywhere in the input string Notes : Converts the character input to longchar and delegates. @param pcPattern The regular expression pattern @param pcInput The input string to test @return TRUE if the pattern matches anywhere in the input */
LOGICAL Test (character, character, RegExOptions) Tests whether the pattern matches anywhere in the input string Notes : Converts the character input to longchar and delegates. @param pcPattern The regular expression pattern @param pcInput The input string to test @param poOptions Matching options (case-insensitive, ignore whitespace) @return TRUE if the pattern matches anywhere in the input */
LOGICAL Test (character, longchar) Tests whether the pattern matches anywhere in the longchar input Notes : @param pcPattern The regular expression pattern @param plcInput The longchar input to test @return TRUE if the pattern matches anywhere in the input */
LOGICAL Test (character, longchar, RegExOptions) Tests whether the pattern matches anywhere in the longchar input Notes : @param pcPattern The regular expression pattern @param plcInput The longchar input to test @param poOptions Matching options (case-insensitive, ignore whitespace) @return TRUE if the pattern matches anywhere in the input */

Top Constructor Summary
Options Name Purpose
RegExHelper () Static constructor - creates the shared processor instance Notes : */


Method Detail
Top

CHARACTER Escape (character)

Purpose: Escapes all regex metacharacters in the input string so that it
can be used as a literal pattern
Notes : Metacharacters escaped: backslash . * + ? ^ $ braces [ ] | ( )

Parameters:
pcInput CHARACTER
The raw string to escape
Returns CHARACTER
The input with all metacharacters preceded by a backslash
Top

Consultingwerk.Framework.RegEx.RegExMatch Match (character, character)

Purpose: Returns the first match of the pattern anywhere in the input
Notes : Converts the character input to longchar and delegates.
Returns ? (unknown object reference) when no match is found.

Parameters:
pcPattern CHARACTER
The regular expression pattern
pcInput CHARACTER
The input string to search
Returns Consultingwerk.Framework.RegEx.RegExMatch
A RegExMatch for the first match, or ? if no match found
Top

Consultingwerk.Framework.RegEx.RegExMatch Match (character, character, RegExOptions)

Purpose: Returns the first match of the pattern anywhere in the input
Notes : Converts the character input to longchar and delegates.
Returns ? (unknown object reference) when no match is found.

Parameters:
pcPattern CHARACTER
The regular expression pattern
pcInput CHARACTER
The input string to search
poOptions Consultingwerk.Framework.RegEx.RegExOptions
Matching options (case-insensitive, ignore whitespace)
Returns Consultingwerk.Framework.RegEx.RegExMatch
A RegExMatch for the first match, or ? if no match found
Top

Consultingwerk.Framework.RegEx.RegExMatch Match (character, longchar)

Purpose: Returns the first match of the pattern anywhere in the longchar input
Notes : Returns ? (unknown object reference) when no match is found.

Parameters:
pcPattern CHARACTER
The regular expression pattern
plcInput LONGCHAR
The longchar input to search
Returns Consultingwerk.Framework.RegEx.RegExMatch
A RegExMatch for the first match, or ? if no match found
Top

Consultingwerk.Framework.RegEx.RegExMatch Match (character, longchar, RegExOptions)

Purpose: Returns the first match of the pattern anywhere in the longchar input
Notes : Returns ? (unknown object reference) when no match is found.

Parameters:
pcPattern CHARACTER
The regular expression pattern
plcInput LONGCHAR
The longchar input to search
poOptions Consultingwerk.Framework.RegEx.RegExOptions
Matching options (case-insensitive, ignore whitespace)
Returns Consultingwerk.Framework.RegEx.RegExMatch
A RegExMatch for the first match, or ? if no match found
Top

Consultingwerk.Framework.RegEx.RegExMatch MatchAll (character, character)

Purpose: Returns all non-overlapping matches of the pattern in the input
Notes : Converts the character input to longchar and delegates.
Returns an indeterminate extent when no matches are found.

Parameters:
pcPattern CHARACTER
The regular expression pattern
pcInput CHARACTER
The input string to search
Returns Consultingwerk.Framework.RegEx.RegExMatch
An extent of RegExMatch objects for every non-overlapping match
Top

Consultingwerk.Framework.RegEx.RegExMatch MatchAll (character, character, RegExOptions)

Purpose: Returns all non-overlapping matches of the pattern in the input
Notes : Converts the character input to longchar and delegates.
Returns an indeterminate extent when no matches are found.

Parameters:
pcPattern CHARACTER
The regular expression pattern
pcInput CHARACTER
The input string to search
poOptions Consultingwerk.Framework.RegEx.RegExOptions
Matching options (case-insensitive, ignore whitespace)
Returns Consultingwerk.Framework.RegEx.RegExMatch
An extent of RegExMatch objects for every non-overlapping match
Top

Consultingwerk.Framework.RegEx.RegExMatch MatchAll (character, longchar)

Purpose: Returns all non-overlapping matches of the pattern in the longchar input
Notes : Returns an indeterminate extent when no matches are found.

Parameters:
pcPattern CHARACTER
The regular expression pattern
plcInput LONGCHAR
The longchar input to search
Returns Consultingwerk.Framework.RegEx.RegExMatch
An extent of RegExMatch objects for every non-overlapping match
Top

Consultingwerk.Framework.RegEx.RegExMatch MatchAll (character, longchar, RegExOptions)

Purpose: Returns all non-overlapping matches of the pattern in the longchar input
Notes : Returns an indeterminate extent when no matches are found.

Parameters:
pcPattern CHARACTER
The regular expression pattern
plcInput LONGCHAR
The longchar input to search
poOptions Consultingwerk.Framework.RegEx.RegExOptions
Matching options (case-insensitive, ignore whitespace)
Returns Consultingwerk.Framework.RegEx.RegExMatch
An extent of RegExMatch objects for every non-overlapping match
Top

CHARACTER Replace (character, character, character)

Purpose: Replaces the first occurrence of the pattern with a replacement string
Notes : Converts the character input to longchar and delegates.
The replacement string may contain back-references: $1 or \1 for
capture group 1, $0 or $& for the entire match.

Parameters:
pcPattern CHARACTER
The regular expression pattern
pcInput CHARACTER
The input string
pcReplacement CHARACTER
The replacement string (may contain back-references)
Returns CHARACTER
The input string with the first match replaced
Top

CHARACTER Replace (character, character, character, RegExOptions)

Purpose: Replaces the first occurrence of the pattern with a replacement string
Notes : Converts the character input to longchar and delegates.
The replacement string may contain back-references: $1 or \1 for
capture group 1, $0 or $& for the entire match.

Parameters:
pcPattern CHARACTER
The regular expression pattern
pcInput CHARACTER
The input string
pcReplacement CHARACTER
The replacement string (may contain back-references)
poOptions Consultingwerk.Framework.RegEx.RegExOptions
Matching options (case-insensitive, ignore whitespace)
Returns CHARACTER
The input string with the first match replaced
Top

LONGCHAR Replace (character, longchar, character)

Purpose: Replaces the first occurrence of the pattern in the longchar input
Notes : The replacement string may contain back-references: $1 or \1 for
capture group 1, $0 or $& for the entire match.

Parameters:
pcPattern CHARACTER
The regular expression pattern
plcInput LONGCHAR
The longchar input
pcReplacement CHARACTER
The replacement string (may contain back-references)
Returns LONGCHAR
The longchar input with the first match replaced
Top

LONGCHAR Replace (character, longchar, character, RegExOptions)

Purpose: Replaces the first occurrence of the pattern in the longchar input
Notes : The replacement string may contain back-references: $1 or \1 for
capture group 1, $0 or $& for the entire match.

Parameters:
pcPattern CHARACTER
The regular expression pattern
plcInput LONGCHAR
The longchar input
pcReplacement CHARACTER
The replacement string (may contain back-references)
poOptions Consultingwerk.Framework.RegEx.RegExOptions
Matching options (case-insensitive, ignore whitespace)
Returns LONGCHAR
The longchar input with the first match replaced
Top

CHARACTER ReplaceAll (character, character, character)

Purpose: Replaces all non-overlapping occurrences of the pattern
Notes : Converts the character input to longchar and delegates.
The replacement string may contain back-references: $1 or \1 for
capture group 1, $0 or $& for the entire match.

Parameters:
pcPattern CHARACTER
The regular expression pattern
pcInput CHARACTER
The input string
pcReplacement CHARACTER
The replacement string (may contain back-references)
Returns CHARACTER
The input string with all matches replaced
Top

CHARACTER ReplaceAll (character, character, character, RegExOptions)

Purpose: Replaces all non-overlapping occurrences of the pattern
Notes : Converts the character input to longchar and delegates.
The replacement string may contain back-references: $1 or \1 for
capture group 1, $0 or $& for the entire match.

Parameters:
pcPattern CHARACTER
The regular expression pattern
pcInput CHARACTER
The input string
pcReplacement CHARACTER
The replacement string (may contain back-references)
poOptions Consultingwerk.Framework.RegEx.RegExOptions
Matching options (case-insensitive, ignore whitespace)
Returns CHARACTER
The input string with all matches replaced
Top

LONGCHAR ReplaceAll (character, longchar, character)

Purpose: Replaces all non-overlapping occurrences of the pattern in the longchar input
Notes : The replacement string may contain back-references: $1 or \1 for
capture group 1, $0 or $& for the entire match.

Parameters:
pcPattern CHARACTER
The regular expression pattern
plcInput LONGCHAR
The longchar input
pcReplacement CHARACTER
The replacement string (may contain back-references)
Returns LONGCHAR
The longchar input with all matches replaced
Top

LONGCHAR ReplaceAll (character, longchar, character, RegExOptions)

Purpose: Replaces all non-overlapping occurrences of the pattern in the longchar input
Notes : The replacement string may contain back-references: $1 or \1 for
capture group 1, $0 or $& for the entire match.

Parameters:
pcPattern CHARACTER
The regular expression pattern
plcInput LONGCHAR
The longchar input
pcReplacement CHARACTER
The replacement string (may contain back-references)
poOptions Consultingwerk.Framework.RegEx.RegExOptions
Matching options (case-insensitive, ignore whitespace)
Returns LONGCHAR
The longchar input with all matches replaced
Top

LOGICAL Test (character, character)

Purpose: Tests whether the pattern matches anywhere in the input string
Notes : Converts the character input to longchar and delegates.

Parameters:
pcPattern CHARACTER
The regular expression pattern
pcInput CHARACTER
The input string to test
Returns LOGICAL
TRUE if the pattern matches anywhere in the input
Top

LOGICAL Test (character, character, RegExOptions)

Purpose: Tests whether the pattern matches anywhere in the input string
Notes : Converts the character input to longchar and delegates.

Parameters:
pcPattern CHARACTER
The regular expression pattern
pcInput CHARACTER
The input string to test
poOptions Consultingwerk.Framework.RegEx.RegExOptions
Matching options (case-insensitive, ignore whitespace)
Returns LOGICAL
TRUE if the pattern matches anywhere in the input
Top

LOGICAL Test (character, longchar)

Purpose: Tests whether the pattern matches anywhere in the longchar input
Notes :

Parameters:
pcPattern CHARACTER
The regular expression pattern
plcInput LONGCHAR
The longchar input to test
Returns LOGICAL
TRUE if the pattern matches anywhere in the input
Top

LOGICAL Test (character, longchar, RegExOptions)

Purpose: Tests whether the pattern matches anywhere in the longchar input
Notes :

Parameters:
pcPattern CHARACTER
The regular expression pattern
plcInput LONGCHAR
The longchar input to test
poOptions Consultingwerk.Framework.RegEx.RegExOptions
Matching options (case-insensitive, ignore whitespace)
Returns LOGICAL
TRUE if the pattern matches anywhere in the input


Constructor Detail
Top

STATIC RegExHelper ()

Purpose: Static constructor - creates the shared processor instance
Notes :



©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       13.04.2026 10:21:38