https://github.com/ImAyrix/er
😁 Easy Regex
https://github.com/ImAyrix/er
bug-bounty bugbounty cli golang regex
Last synced: over 1 year ago
JSON representation
😁 Easy Regex
- Host: GitHub
- URL: https://github.com/ImAyrix/er
- Owner: ImAyrix
- License: mit
- Created: 2023-04-09T20:29:12.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-09T22:04:24.000Z (about 3 years ago)
- Last Synced: 2023-06-28T00:04:10.087Z (almost 3 years ago)
- Topics: bug-bounty, bugbounty, cli, golang, regex
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 21
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Easy Regex
Usage Examples •
Usage Parameters •
Install •
Contact me
---
"Easy Regex" is a valuable and straightforward tool that takes your regular expression and displays the matched parts of the text in the output. Give it a try and witness its usefulness in action.
## Usage Examples
Suppose we possess a file that encompasses a plethora of information, comprising ASN numbers. Our objective is to extract solely the ASN numbers. Let us witness how our tool accomplishes this task for us...
```
▶ cat things.txt
The foremost ASN, AS11111, reigns supreme while the second in line, AS2222, follows closely behind.
Additionally, we possess another noteworthy ASN number - AS3333.
▶ cat things.txt | er -r "AS\d+"
AS11111
AS2222
AS3333
▶ cat things.txt | er -r "AS(\d+)" -g 1
11111
2222
3333
```
## Usage Parameters
```
-r string
Your regex [e.g: ^\w+]
-g int
Group number
-h Help, show usage parameters
```
## Installation
```
go install github.com/ImAyrix/er@latest
```