Need help w/ some regex

does anyone know the regex expression for discord webhooks :sob: :sob:, I thought it was https:\/\/.+\/api\/webhooks\/(.+)\/[\w-]{68}. Nvm it was: https:\/\/.+\/api\/webhooks\/.+\/[\w-]{68}


The only change I can see is that you removed some parenthesis… that shouldn’t affect the RegEx… that should just remove a group, shouldn’t it?

1 Like

it did, because with the parenthesis it was grouping the webhook ID which in returned messed up the entire thing. It was returning something like:'the webhook ID')/webhook token.

1 Like

A webhook request for Discord would look something like this:'the_webhook_id'/webhook_token

Hope this helped!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.