newbtophp Posted November 11, 2009 Share Posted November 11, 2009 how would i preg_match urlencoded data? example: %61%68%36%73%62%65%68%71%6c%61%34%63%6f%5f%73%61%64 :-\ Quote Link to comment Share on other sites More sharing options...
cags Posted November 11, 2009 Share Posted November 11, 2009 Simplest way would be to decode it. Quote Link to comment Share on other sites More sharing options...
newbtophp Posted November 11, 2009 Author Share Posted November 11, 2009 hmm yep, but how would i preg_match so i can decode it? example: if(preg_match_all('/[%0-9]+/Umis', $file, $match)) { echo(urldecode($match[0][1])); } Quote Link to comment Share on other sites More sharing options...
cags Posted November 11, 2009 Share Posted November 11, 2009 What is your objective? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.