Skip to content

filippov112/regex-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Regex Tool

A graphical interface application for searching and replacing text using regular expressions. Allows you to quickly find matches in text, highlight them, and perform replacements using specified patterns.

Functionality

  • Entering text to be processed and a regular expression to search for.
  • Highlighting found matches in the source text.
  • Displaying a list of all found fragments.
  • Replacing found matches with text specified by the user.
  • Support for multiline text and Unicode.
  • Help menu with a description of the syntax of regular expressions.
  • Standard hotkeys for copying, pasting, and selecting text.

Technologies

  • Python 3.x
  • Tkinter — for creating a graphical interface
  • The re module — for working with regular expressions

Installation and launch

  1. Clone the repository or download the archive with the project.
  2. Make sure Python 3 is installed.
  3. Install dependencies from requirements.txt with the command:
pip install -r requirements.txt
  1. Run the application with the command:
python main.py

To build the executable file using PyInstaller:

pyinstaller --onefile --noconsole --icon=icon.ico --add-data "icon.ico;." main.py

User Guide

  1. In the "Regular expression" field, enter the desired search pattern.
  2. In the "Replacement text" field, specify the text that will replace the found matches.
  3. In the large left window, paste or enter the original text.
  4. Click the "Search" button to highlight and display the found matches.
  5. Click the "Replace" button to apply the replacement and display the result in the right window.
  6. To get help on regular expressions, click the menu item "?" → "Regular expression help".

LICENSE

About

A graphical interface application for searching and replacing text using regular expressions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages