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 :-\ Link to comment https://forums.phpfreaks.com/topic/181162-preg_match-urlencoded-string/ Share on other sites More sharing options...
cags Posted November 11, 2009 Share Posted November 11, 2009 Simplest way would be to decode it. Link to comment https://forums.phpfreaks.com/topic/181162-preg_match-urlencoded-string/#findComment-955783 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])); } Link to comment https://forums.phpfreaks.com/topic/181162-preg_match-urlencoded-string/#findComment-955798 Share on other sites More sharing options...
cags Posted November 11, 2009 Share Posted November 11, 2009 What is your objective? Link to comment https://forums.phpfreaks.com/topic/181162-preg_match-urlencoded-string/#findComment-955801 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.