Skip to content
/ regex Public

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

License

Notifications You must be signed in to change notification settings

capjan/regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages