Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple regex capture group wrapper #214

Open
terrorbyte opened this issue Aug 13, 2024 · 2 comments
Open

Add simple regex capture group wrapper #214

terrorbyte opened this issue Aug 13, 2024 · 2 comments
Assignees

Comments

@terrorbyte
Copy link
Collaborator

There's a couple of really simple functions that we have used to a pretty extreme degree that might save a decent amount of time to just wrap in a simple function just to increase ergonomics. One of the very first ones is just a simple regex capture group single match such as:

matches := regexp.MustCompile(`'settings':'([0-9a-zA-Z+/=]+)','dialogTriggerIDList'`).FindStringSubmatch(body)
if len(matches) != 2 {
        return "", false
}

return matches[1], true

Might be worth just dropping this into a single function.

@mahadzaryab1
Copy link

@terrorbyte are you looking for someone to work on this? I'm looking to start contributing to open source projects and would like to work on this if it's up for grabs!

@terrorbyte
Copy link
Collaborator Author

@mahadzaryab1 absolutely! We always welcome any contribution and this would be a great one to start getting familiar with go-exploit. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants