mass10 / r-regex

Regex CLI Utility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

r-regex

Regex CLI Utility

Getting Started

Install

cargo install --git https://github.com/mass10/r-regex --branch main

Or download single binary file.

wget https://github.com/mass10/r-regex/releases/latest/download/r-regex

Examples

print 4567

r-regex --string "123-4567" --regex "([0-9]+)$"

print 4567

echo "123-4567" | r-regex --regex "([0-9]+)"

print 1.0.0

r-regex --string "refs/tags/v1.0.0" --regex "/v([0-9.]+)$"

About

Regex CLI Utility

License:MIT License


Languages

Language:Rust 100.0%