Hello,
existing regex can not handle html title with css identificator, eg:
<title id="pageTitle">Facebook</title>

So, i'm suggest this regex as solution:
<title[^>]*>([^<]+)<\/title>

It is tested with online regex tools and also on my site.

Comments

Samgarr created an issue. See original summary.

chaitanya17’s picture

Assigned: Unassigned » chaitanya17
Ivan Berezhnov’s picture

Issue tags: +CSKyiv18