0

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.

bummi
  • 26,839
  • 13
  • 60
  • 97
Shrekt
  • 195
  • 1
  • 3
  • 15

1 Answers1

1

Regex is not the best tool for this but if you want:

<input\s(?=[^>]*?name="authenticityToken").*?value="([^"]+)"

The value is stored in group 1

walid toumi
  • 2,052
  • 1
  • 10
  • 10