I want to use PHP to check, if string stored in $myoutput
variable contains a valid link syntax or is it just a normal text. The function or solution, that I'm looking for, should recognize all links formats including the ones with GET parameters.
A solution, suggested on many sites, to actually query string (using CURL or file_get_contents()
function) is not possible in my case and I would like to avoid it.
I thought about regular expressions or another solution.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…