go-exploit icon indicating copy to clipboard operation
go-exploit copied to clipboard

Add simple regex capture group wrapper

Open terrorbyte opened this issue 1 year ago • 2 comments

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.

terrorbyte avatar Aug 13 '24 20:08 terrorbyte

@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!

mahadzaryab1 avatar Aug 14 '24 17:08 mahadzaryab1

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

terrorbyte avatar Aug 14 '24 18:08 terrorbyte