Hi guys I am willing to know how to match a website s title using regex.

Many thanks in advance

Recommended Answers

All 4 Replies

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 :(

many thanks mate!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.