Basically, what you should know is how to extract strings from response headers and page which are involved in forming the next HTTP request. I do that on this way:
First, I type string name and I open up String builder...
and select Regex. The two fields will show below:
So, if I want to extract this cookie from response headers: Set-Cookie: PHPSESSID=F45654FDGASDG5648G8976865G; I type in the first field this:
PHPSESSID=(.*?); and press Insert, so I got this:
And that's it.
The second case is when I want to extract some part of the page, like this: <input type="hidden" id="auth" value="TWlraVNvZnQ="> I want to extract only value part, so I type this in the two fields for Regex:
And when I insert it, I can test it before confirming:
UPDATE: Someone asked me how to make a Regex command to extract this: <span>your points:</span> <p>70 GN</p> So for the new line we write \r\n (in some cases it's just \n), and also we must escape Regex special character/ with \ before it, so all will look like this: >your points:<\/span>\r\n <p>(.*?)< And of course, since we want to extract only the dynamic value in (.*?), we make it like this:
Here is one more complex example: Cash Balance</td> </tr> <tr class="white-box-reffral" align="center"> <td>$0.0020</td> So we need to extract $0.0020 dynamic value, but we need to prepare this part of the page source to be used in Regex. We won't go manually because there are many things to do here and we would eventually make some mistake, so we open up this page: textmechanic.com/Find-and-Replace-Text.html The first step is to replace new line chars with \r\n, so we make it like this:
We got \\r\\n and we don't want that, so we get back to correct it:
The final thing is to replace \$0\.0020 with (.*?) and make Regex command from it, so at last we got this string: rg('[src]','Cash Balance<\/td>\r\n <\/tr>\r\n <tr class\="white-box-reffral" align\="center">\r\n <td>(.*?)<','$1') Note: If new line replacement (\r\n) doesn't work, then select "Use regular expression" option and write just \n in both fields, so it will look like this:
That's not even a cookie, and I don't understand what are you exactly trying to point out there - no token is present there obviously, it's looks a line of some code for selecting specific element of the page. I think you misunderstood and mixed up something there entirely, since it seems illogical so far.