Sign in to follow this  
Silentt

Attempting Regex

Recommended Posts

So I'm trying to make a config and I have a decent regex but the problem is it's captureing 100 different things instead of the token itself. Here is the pastebin:

 

https://pastebin.com/TAZbEnMg

 

This is what I'm attempting to capture for reference:

 

 value="2418277d1c3262bb20bbcea8280237a5"
data-value="1549513731" type="hidden"
name="token"

This is the regex I have currently:

("([^"]+)"\s+)

Share this post


Link to post
Share on other sites

Bumping because I desperately need help with this <3

Share this post


Link to post
Share on other sites
(?<=input\svalue=").+?(?="\sdata-value="\d+"\stype="hidden"\sname="token")

Try this

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this