Hi guys I am willing to know how to match a website s title using regex.
Many thanks in advance
Hi guys I am willing to know how to match a website s title using regex.
Many thanks in advance
Why use RegEx? You can use a simple function to acieve the task
var title = document.getElementsByTagName('title')[0].innerHTML;
shubhamjain1 : many thanks :) ! I need to use this regex in an app that requires so :(
result = subject.replace(/.*<title>(.*?)<\/title>.*/ig, "$1");
many thanks mate!
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.