RegExp Exps (Regular Expression Experts),
What is the regex to extract your desired text inbetween 2 tags such as the opening html tag and the closing.
Should work for other tags too such as javascript, xml, dhtml, css, etc.
Imagine that, I'm on a webpage that looks like this in the source code:
<html>
<head><title>Article</title></head>
<body>
Regex is too complicated to learn!<br>
Why on earth could not the inventors build it simpler so it is easier to learn ?<br>
Oh boy, oh boy!<br>
</body>
</html>
Php Folks,
What is the regex to extract the title, meta keywords, meta descriptions and the content text (without all the tags such as html tags, dhtml tags, xml tags, javascript tags, etc.) ?
I actually, prefer one regex to extract title, another to extract meta keywords, another to extract meta descriptions and finally another to extract the content text.
That way, I can make use of each separately when I don't want to extract all (title, description, etc.).
If you know of php functions, other than regex that do what I want, then say so by writing: OFF TOPIC.
Thanks for your help!
What is the regex to extract your desired text inbetween 2 tags such as the opening html tag and the closing.
Should work for other tags too such as javascript, xml, dhtml, css, etc.
Imagine that, I'm on a webpage that looks like this in the source code:
<html>
<head><title>Article</title></head>
<body>
Regex is too complicated to learn!<br>
Why on earth could not the inventors build it simpler so it is easier to learn ?<br>
Oh boy, oh boy!<br>
</body>
</html>
Php Folks,
What is the regex to extract the title, meta keywords, meta descriptions and the content text (without all the tags such as html tags, dhtml tags, xml tags, javascript tags, etc.) ?
I actually, prefer one regex to extract title, another to extract meta keywords, another to extract meta descriptions and finally another to extract the content text.
That way, I can make use of each separately when I don't want to extract all (title, description, etc.).
If you know of php functions, other than regex that do what I want, then say so by writing: OFF TOPIC.
Thanks for your help!