Ben php bir düz metin dizesi bir veya daha fazla adresler ayıklamak çalışıyorum. İşte bazı örnekler var
"mydomain.com has hit the headlines again"
özü "http://www.mydomain.com"
"this is 1 domain.com and this is anotherdomain.co.uk but sometimes http://thirddomain.net"
"http://www.domain.com" özü "http://www.anotherdomain.co.uk", "http://www.thirddomain.net"
There are two special cases I need - I'm thinking regex, but dont fully understand them
1) all symbols like '(' or ')' and spaces (excluding hyphens) need to be removed
2) the word dot needs to be replaced with the symbol . , so dot com would be .com
I PHP validation/regex for URL farkındayım ama son hedefe ulaşmak için kullanmak nasıl işe edemez ps.
Teşekkürler