RegExtract
RegExtract copied to clipboard
Clean & simple idiomatic C# RegEx-based line parser that emits strongly typed results.
netcoreapp was [replaced](https://learn.microsoft.com/en-us/dotnet/standard/frameworks#supported-target-frameworks) with net since v5.
```var (x,y,z) = "".Extract(@"")``` is pretty handy for common (single-line) use cases. The docs should explicitly teach this.
This PR adds Try-prefixed methods, including: `TryConstruct`, `TryExecute`, `TryExtract`.
To support the use case(s) raised in discussion #13, let's add an `IgnoreGroupNames` flag (or maybe `BindNamedGroupsPositionally`?) flag to `RegExtractOptions`.
At the very least, an extraction plan could have already prepared type info for each step of the plan.
Updated the GitHub Actions workflow to use the latest v4 versions of the artifact actions: - `actions/upload-artifact@v2` → `actions/upload-artifact@v4` - `actions/download-artifact@v2` → `actions/download-artifact@v4` (both instances) This ensures the build pipeline...
This PR implements a C# source generator to eliminate runtime reflection overhead by generating compile-time extraction plans for types with `REGEXTRACT_REGEX_PATTERN` constants. ## What's Added ### Source Generator Infrastructure -...