ogex-cli 0.1.1

CLI tool for Ogex regex engine
ogex-cli-0.1.1 is not a library.

ogex-cli

CLI tool for the Ogex regex engine.

Installation

cargo install ogex-cli

Usage

# Test a pattern against input
ogex test "(name:hello)" "hello world"

# Find all matches
ogex find "a+" "banana"

# Check if pattern matches
ogex match "abc" "abcdef"

# Convert Ogex syntax to traditional regex
ogex convert "(name:abc)"
# Output: (?<name>abc)

# Replace matches
ogex replace "(name:\w+)" "[$1]" "hello name:world"
# Output: hello [world]

License

MIT