Skip to content

Powerful commandline tool to extract and manipulate strings using regular exressions

License

Notifications You must be signed in to change notification settings

kata198/rextract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

rextract

Shell tool to extract strings using regular exressions
Usage: rextract (Options) [reg pattern] ([Output Str])
	Reads from stdin and applies regex pattern line-by-line.

	Options:

		--debug     Enable debug mode

If output str is provided, will output the variables/groups captured in the regex pattern.

Each pattern contained within parenthesis counts as a group.
Name a group like: (?P<name>.*)

Use ${1} or $1 for first group, use ${name} or $name for a name [ defined like (?P<name>.*) ]
Use ${0} or $0 for entire matched string.

NOTE: Make sure to single-quote the "output str" or escape dollar [$] signs!

About

Powerful commandline tool to extract and manipulate strings using regular exressions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages