https://github.com/shakibamoshiri/dren
A program utility for renaming files base on Regular-Expression in D Language
https://github.com/shakibamoshiri/dren
d dlang regex rename
Last synced: 5 months ago
JSON representation
A program utility for renaming files base on Regular-Expression in D Language
- Host: GitHub
- URL: https://github.com/shakibamoshiri/dren
- Owner: shakibamoshiri
- Created: 2017-05-12T14:23:30.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-12T15:18:19.000Z (about 9 years ago)
- Last Synced: 2025-05-24T07:39:24.396Z (about 1 year ago)
- Topics: d, dlang, regex, rename
- Language: D
- Size: 50.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dren.
### Renaming file based on [Regex](https://en.wikipedia.org/wiki/Regular_expression) in D Language just to show how great D is.
### I wrote it just in 2 hours.
### [D Language](https://dlang.org/)
---

---

As you can see it prints the output in green color, but it does not support global matching.
But you can modify the code and replace `replaceFirst` to `replaceAll`
Also if you are willing to **remove** file and not **rename** file, you can change
the rename function to remove.