https://github.com/amirali104/text2excel
A GUI desktop application that can extract data from a text file and put them in an Excel or CSV file using regular expression (regex) patterns
https://github.com/amirali104/text2excel
automation csv data-extraction data-extractor data-processing excel openpyxl productivity-tool productivity-tools regex text-parsing text-processing text-to-excel tkinter tkinter-gui
Last synced: 12 days ago
JSON representation
A GUI desktop application that can extract data from a text file and put them in an Excel or CSV file using regular expression (regex) patterns
- Host: GitHub
- URL: https://github.com/amirali104/text2excel
- Owner: AmirAli104
- License: mit
- Created: 2024-08-31T12:32:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-13T15:16:51.000Z (5 months ago)
- Last Synced: 2025-05-26T14:47:01.837Z (5 months ago)
- Topics: automation, csv, data-extraction, data-extractor, data-processing, excel, openpyxl, productivity-tool, productivity-tools, regex, text-parsing, text-processing, text-to-excel, tkinter, tkinter-gui
- Language: Python
- Homepage:
- Size: 135 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Text2Excel
**Text2Excel** is a desktop GUI application that extracts data from text files and saves them into Excel or CSV files using regular expression (regex) patterns. It is built with Python’s `re` module.

## Features
- Add regex patterns via the **patterns widget** (right-click → context menu).
- Choose whether data goes into **columns** or **rows**, and select the target sheet.
- **Exact Order** option:
- Disabled → places data starting from the last filled row in the file.
- Enabled → aligns data strictly with existing entries (only in “put in columns” mode).
- Support for regex **groups**:
- Example:
```regex
\w{5}(\d)
```
This matches 5 word characters followed by a digit, but only the digit will be saved if wrapped in a group.
- Export to **Excel (.xlsx)** or **CSV (.csv)** (CSV available via the output file context menu).**note: You cannot place multiple groups in one pattern**
## Installation
This project requires `openpyxl`. Install it with:```bash
python -m pip install openpyxl
```Version used during development:
```bash
python -m pip install openpyxl==3.1.5
```Run the app with:
```bash
python src/text2excel.py
```
## Build
To build an executable with `pyinstaller`:
```bash
cd build
pyinstaller text2excel.spec
```Install `pyinstaller` if needed:
```bash
pip install pyinstaller
```## License
This project is licensed under the [MIT License](LICENSE).
[def]: assets/screenshot.png