regex - Extract value of HTML code using TRegex -
how can value part of html code using tregex:
<input type="hidden" name="authenticitytoken" value="56e8af5e4491c1b18472e9ab0e40570b73222499">
i'd extract
56e8af5e4491c1b18472e9ab0e40570b73222499
only.
regex not best tool if want:
<input\s(?=[^>]*?name="authenticitytoken").*?value="([^"]+)"
the value stored in grouping 1
regex delphi
No comments:
Post a Comment