How can get the value part only of this HTML code using TRegex:
<input type="hidden" name="authenticityToken" value="56e8af5e4491c1b18472e9ab0e40570b73222499">
I'd like to extract
56e8af5e4491c1b18472e9ab0e40570b73222499
only.
How can get the value part only of this HTML code using TRegex:
<input type="hidden" name="authenticityToken" value="56e8af5e4491c1b18472e9ab0e40570b73222499">
I'd like to extract
56e8af5e4491c1b18472e9ab0e40570b73222499
only.
Regex is not the best tool for this but if you want:
<input\s(?=[^>]*?name="authenticityToken").*?value="([^"]+)"
The value is stored in group 1