Reputation: 690
I have such String
/member/%E9%BB%91%E7%9C%BC%E5%9C%88%E4%B8%8D%E8%A6%81%E5%95%8A/home
And I use this pattern
preg_match_all("/member\/(?<$authorcode>(%[0-9A-Z]{2})+)/",$sourcestring,$matches2);
But what I get is
%E9%BB%91%E7%9C%BC%E5%9C%88%E4%B8%8D%E8%A6%81%E5
So, how to solve it?
Upvotes: 0
Views: 83
Reputation: 690
I am very sorry I have made a stupid mistake, I read this string from file, but the length I use is wrong, so I only get %E9%BB%91%E7%9C%BC%E5%9C%88%E4%B8%8D%E8%A6%81%E5%95%8A
from file.
Upvotes: 1