Skip to content
rename and remove C++ program utility based on regular expressions
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
button
screenshot
src
.gitignore
README.md
bug_report.txt

README.md

renrem program utility

renrem is an acronym for rename and remove task together.
Since it uses regular expression to match a string, apart from renaming a file, can be used for removing a file. It also has contraction synopsis and both works together to avoid of using command-ling argument, that sometimes it annoys the user. Notice that for spelling you can spell it: ren-rem.


00_title 01_fast 02_portable 03_colorize 04_changeable 05_index 06_lightweight 07_leading 99_copyright


Fast:

Only C++ code and plus a little C

Portable:

Only the standard library:

  • std::sstream
  • std::string
  • std::regex
  • cstdio

Colorize the output:

Using ANSI escape code for colorize the output for both match and substitute.

Changeable from std::regex to boost::regex:

Since C++ uses ECMAScript 262 if you are willing to use almost PCRE feature your can modify the code to boost::regex easly.
boost_regex_table
table-source

Index-match ( new feature ):

A great new feature that helps you to substitute a match string as easy as possible.

Lightweight:

Less then 300 lines of code.

Auto zero leading:

Counts each line and adds zero-leading if need.


some screenshots:

On Ubuntu ( with Konsole )

renrem_std_auto_leading_zeros

renrem_std_s_g_i_1_-1_2

renrem_std_s_g_i_1_-1

renrem_std_s_g_i

On Windows ( with cmd, powershell, and cygwin-bash )

01_windows_renrem_std_on_cmd

04_windows_renrem_boost_on_powershel

05_windows_renrem_std_on_bash


License:

GPL3

You can’t perform that action at this time.