>As I said something like this, of course you could create a stronger regex pattern, >for example allowing other tags within the title and terminate on </title (in all combinations of TiTLe, ...) >and then stripping out the extra HTML tags again later with another regex. >But sure regex is probably not a 100% bulletproof solution, but I think it will get you pretty far in very few lines of code
- especially for <!-- <title>TEST</title> -->