Skip to content

Latest commit

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

.NET 5.0

regex

... because it makes developers life easier 😎

Features

Install

dotnet tool install --global cap.regex --version 1.0.0

Options

Usage:
regex [option]... pattern (file|directory)...
Arguments:
pattern The search pattern as .NET Regular Expression (RegEx).
file File to operate.
directory Directory to operate. (Must end with a directory separator)
Options:
-R, --replace=VALUE replacement Pattern (regex)
-c, --case-sensitive enables case-sensitive behavior - btw. disables the by default enabled ignore-case option
-f, --filter=VALUE wildcard based file filter (default *.*)
e.g. *.txt
-r, --recursive progress all subdirectories
--offset-width=VALUE output-formatting:
set the count of characters used for the offset column (default 6)
-o, --only-matching prints only the match
-m, --max-count=VALUE limit matches to the given count
-v, --verbose show additional information
-V, --version show version information
-h, --help shows this help

Usage Examples

Find "Hello" in all *.txt files in this folder and all subfolders

C:>regex --recursive --filter *.txt Hello ./

About

regex tool for the command line for macOS, Linux and Windows

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages