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
  • 27,123
  • 14
  • 62
  • 101
Shrekt
  • 195
  • 1
  • 4
  • 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,172
  • 1
  • 13
  • 10