I would like to pull a token out of an HTML form with Regex. Every time the page loads, the token changes.
<input type="hidden" name="lt" value="LT-24-EskCKFJ4NghflvpXkuveCdZ1VvWPLi" />
I would like to isolate the value of this hidden input.
I found http://regexr.com/ and I have made some progress. My current regex is "([a-zA-Z0-9\-]*)?" which isolates everything within quotation marks.
I am using Java. The entire HTML page is given to me in a string after a GET request to the server. I need the LT token to re post.
Is there a way to isolate the LT token specifically?