need help with some regex

Status
Not open for further replies.

t3od0r

Active Member
1,419
2008
183
10
so, i have this:
Code:
$pattern = '|http[^ ["<\t\n\r\f\v]{1,}|';
        preg_match_all($pattern, $links, $matches);
this code finds the correct links for rs, hf, sharingmatrix but not for fileserve

for fileserve i only get
Code:
http://www.fileser
and my links are
Code:
http://www.fileserve.com/file/afdsaf
http://www.fileserve.com/file/werwq
http://www.fileserve.com/file/wr23
http://www.fileserve.com/file/adsfa
http://www.fileserve.com/file/adsffdsa

how can i get the full fileserve links?

thanks :)
 
1 comment
simples, your using single qoutes, witch means you cannot escape chars because everything is literal.

try

PHP:
$pattern = "#http[^ [\"<\t\n\r\f\v]{0,1}#";
preg_match_all($pattern, $links, $matches);

something like that
 
Status
Not open for further replies.
Back
Top