Skip to content

Conversation

Josbleuet
Copy link

πŸ“Œ Summary

This pull request extends the file editing tool to include regular expression support, providing more flexible and powerful text manipulation capabilities.

πŸ” Related Issues

  • Fixes #

✨ Changes Made

  • Introduces regex-based edits with options for case sensitivity, multiline matching, and dot-all mode.
  • Adds support for limiting the number of replacements in regex edits.
  • Enables specifying a line range to restrict edits within a specific portion of the file.
  • Introduces new EditOperation enum to support Exact or Regex based replacements.

πŸ› οΈ Testing Steps

πŸ’‘ Additional Notes

Adds support for regular expression-based edits to the file editing tool, in addition to exact string matching.
This provides more flexible and powerful text manipulation capabilities.

Introduces options for regex case-insensitivity, multiline matching, dot-all mode, and maximum replacements.
Also adds support for specifying a line range on which to apply edits.

The original `EditOperation` enum is refactored to support both exact and regex edit types.
Tests are added to ensure the new functionality works as expected.
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.

1 participant