Extending .net Regular Expressions

  • Thread starter Thread starter rchurchill
  • Start date Start date
R

rchurchill

Does anyone know if the .net regex engine can be extended in any way.
For example I'd like to be able to create my own metacharacters which
mean something for certain subjects.
 
Does anyone know if the .net regex engine can be extended in any way.
For example I'd like to be able to create my own metacharacters which
mean something for certain subjects.

Have you considered simply pre-processing your expression into a standard
one? (using regular expressions of course)
 
Does anyone know if the .net regex engine can be extended in any way.
For example I'd like to be able to create my own metacharacters which
mean something for certain subjects.

You can use MatchEvaluator to some kinds of extensions. For instance,
I'm using a MatchEvaluator to allow the use of \x in a replacement
string to insert the specified character into the text resulting from a
replacement.

Mike
 
Back
Top