I need a simple PHP script that I can upload to my webhosting that does the following:
1. I paste source code of a webpage (html) in one box
2. I specify one anchor text in another box
3. The script searches for the html code with the chosen anchor text and extracts all permalinks of the urls that are attached to this anchor text (multiple times in the source code) and shows them in another box (one per line).