Skip to content
forked from p-rs/eschargo

Escape regex characters easily with this simple binary - for copy/pasting into code projects, Splunk, and more. Pronounced as "escargot`!

License

Notifications You must be signed in to change notification settings

bhayes-zd/eschargo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EsCharGo

Escape Regex Metacharacters made in Go

___

Usage

Run any standard in/out through ecg:

# output: \[02/Nov/2020:21:50:22 \+0000\]
ecg '[02/Nov/2020:21:50:22 +0000]'

# outputs \[02/Nov/2020:21:50:22 \+0000\] to MacOS clipboard
ecg '[02/Nov/2020:21:50:22 +0000]' | pbcopy

# output: escapes characters in example.txt
cat example.txt | ecg

# outputs escapes characters in example.txt and outputs to MacOS clipboard
cat example.txt | tr -d '\n' | ecg | pbcopy

Limitation

ecg does not account for bash/history escaping, so make sure to use single quotes.

License

MIT. See LICENSE for more details.

About

Escape regex characters easily with this simple binary - for copy/pasting into code projects, Splunk, and more. Pronounced as "escargot`!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%