Home > Services > DXCore Services – RegEx (regular expressions)

DXCore Services – RegEx (regular expressions)

July 4th, 2011

The RegEx DXcore service provides access to the DXCore regular expressions and aliases engine.

Methods of the service:

Method name

Description

GetAliases(String) Returns a collection of aliases for the specified language.
GetSystemAliases(String) Returns a collection of system aliases for the specified language.
IsMatch(String, String) Indicates whether the regular expression finds a match in the input string using the regular expression specified in the pattern parameter. Replaces aliases in the pattern before calling the Regex object.
IsMatch(String, String, RegexOptions) Indicates whether the regular expression finds a match in the input string, using the regular expression specified in the pattern parameter and the matching options supplied in the options parameter.
Match(String, String) Searches the specified input string for an occurrence of the regular expression supplied in the pattern parameter. Replaces aliases in the pattern before calling the Regex object.
Match(String, String, RegexOptions) Searches the input string for an occurrence of the regular expression supplied in a pattern parameter with matching options supplied in an options parameter. Replaces aliases in the pattern before calling the Regex object.
Matches(String, String) Searches the specified input string for all occurrences of the regular expression specified in the pattern parameter. Replaces aliases in the pattern before calling the Regex object.
Matches(String, String, RegexOptions) Searches the specified input string for all occurrences of the regular expression supplied in a pattern parameter with matching options supplied in an options parameter. Replaces aliases in the pattern before calling the Regex object.
Replace(String, String, MatchEvaluator) Replaces all occurrences of a character pattern defined by a regular expression with a replacement character string starting at the first character. A MatchEvaluator delegate is called at each match to evaluate the replacement. Replaces aliases in the pattern before calling the Regex object.
Replace(String, String, MatchEvaluator, RegexOptions) Replaces all occurrences of a character pattern defined by a specified regular expression with a replacement character string starting at the first character. Options can be specified to modify matching behavior and a MatchEvaluator delegate is called at each match to evaluate the replacement. Replaces aliases in the pattern before calling the Regex object.
Replace(String, String, String) Replaces all occurrences of matches defined by the regular expression with a replacement string, starting at the first character in the input string. Replaces aliases in the pattern before calling the Regex object.
Replace(String, String, String, RegexOptions) Replaces all occurrences of a pattern defined by a specified regular expression with a specified replacement character string, starting at the first character in the input string. Options can be specified to modify the matching behavior. Replaces aliases in the pattern before calling the Regex object.
ReplaceRegexAliases( String) Replace aliases in the passed string, using Aliases first, then SystemAliases. Discards unrecognized aliases.
ReplaceRegexAliases( String, Boolean) Replace aliases in the passed string, using Aliases first, then SystemAliases, and optionally throwing an exception if an unrecognized alias is found.
ReplaceRegexReplacement( String) Replaces aliases in the passed string with the matching values from the collection, discarding any unrecognized aliases.
Split(String, String) Splits the input string at the positions defined by a regular expression pattern. Replaces aliases in the pattern before calling the Regex object.
Aliases Gets a collection of language neutral regular expression aliases.
AliasesLang Gets a collection of language specific regular expression aliases.
SystemAliases Gets a collection of language neutral system regular expression aliases. Note: for internal system use only.
SystemAliasesLang Gets a collection of language specific system regular expression aliases. Note: for internal system use only.
—–
Products: DXCore
Versions: 11.1 and up
VS IDEs: any
Updated: Jul/05/2011
ID: D102

Similar Posts: