fork download
  1. x <- "<script type=\"application/ld+json\">{\"@context\":\"https://s...content-available-to-author-only...a.org\",\"@type\":\"WebSite\",\"url\":\"https://w...content-available-to-author-only...o.com/\""
  2. p <- "<script\\s[^>]*type *= *['\"] *application/ld.json *['\"][^>]*>[^}]+['\"] *@type *['\"] *: *['\"]\\K[^'\"]+"
  3. regmatches(x, regexpr(p, x, ignore.case = TRUE, perl=TRUE))
Success #stdin #stdout 0.2s 39452KB
stdin
Standard input is empty
stdout
[1] "WebSite"