Preg match [code] example:


Results: We are inside the square brackets

Preg Match <head> example:

Results: <title>Title</title><meta name="description" content="description of your page" />

Preg Match meta description example:

Results: description of your page

Host from Url example:


Host: www.linkstraffic.net
domain name is: linkstraffic.net

Charset Example

Results: gb2312

Input value example

Results: somevalue

preg_match_all example

Text to parse:
some text before [url]http://www.newo17.com[/url] and another url here: [url]http://www.remotehireman.com[/url]. Check out the links if you have time ;).

Extracted text:
some text before ...ttp://www.newo17.com and another url here: ...ww.remotehireman.com. Check out the links if you have time ;).