Quote:
|
Originally Posted by FiRe
YIKES  !
You could also use str_replace:
|
not me, but it's the author who answered why the method is not acceptable
Quote:
|
Originally Posted by Tempestshade
hrm... how could i make that possible if the URL just kept changing?
|
more reasons:
1. it won't work for other combinations of link tag (a:A,a:a,A:A)
2. it won't work for whole the file.
if one doesn't care too much about the speed of parsing, use regex (it's just a line or two, compared to several lines for manual userland string-matching procedure). here i write again the code in highlighted manner:
Output: