An open API service indexing awesome lists of open source software.

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

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/)

---

![dren_screenshot](https://github.com/k-five/dren/blob/master/dren_screenshot.png)

---

![dren_screenshot](https://github.com/k-five/dren/blob/master/dren_screenshot_2.png)

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.