Skip to content

Conversation

@konard
Copy link
Member

@konard konard commented Sep 13, 2025

🤖 AI-Powered Solution

This pull request is being automatically generated to solve issue #26.

📋 Issue Reference

Fixes #26

🚧 Status

Work in Progress - The AI assistant is currently analyzing and implementing the solution.

📝 Implementation Details

Details will be added as the solution is developed...


This PR was created automatically by the AI issue solver

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #26
@konard konard self-assigned this Sep 13, 2025
konard and others added 3 commits September 13, 2025 19:51
…ssions

This implementation adds a flexible regex engine abstraction layer that allows
users to switch between System.Text.RegularExpressions and PCRE2 engines.

Key features:
- IRegexEngine and IRegexPattern abstractions for engine-agnostic regex operations
- SystemRegexEngine: wraps System.Text.RegularExpressions.Regex
- PcreRegexEngine: wraps PCRE.NET for PCRE2 support
- RegexEngineFactory: centralized engine creation and default engine management
- Full backward compatibility with existing SubstitutionRule API
- Comprehensive test coverage for both engines
- Example demonstrating engine switching capabilities

The implementation maintains full backward compatibility while enabling users to
leverage PCRE2's advanced features when needed. Users can switch engines globally
via RegexEngineFactory.SetDefaultEngine() or use specific engines per rule.

Resolves #26

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>'
@konard konard marked this pull request as ready for review September 13, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support PCRE2 for .NET as a regular expression engine

2 participants