There is a text of this type (the number of links in the line is from 0 to 10):
различный html текст с различными символами [url=http://img.site.kz/upload_image/000.JPG] [img=left]http://img.site.kz/upload_image/thumb/000.JPG[/img][/url] опять html код [url=http://img.site.kz/upload_image/111.JPG] [img=left]http://img.site.kz/upload_image/thumb/111.JPG[/img][/url] As a result, you need to get an array of this kind (so that it contains links from the code from the url tag):
Array ( [0] => http://img.site.kz/upload_image/000.JPG [1] => http://img.site.kz/upload_image/111.JPG ) Or print the text that there are no links.
How to do this with a regular expression?
http://localhost/?param[]=123(or similar) may be present? And how then to determine thatparam[]is part of the link, notparam[and the closing bracket of the link? - BOPOH