i am use this pattern:
$line = preg_replace('#(\w)(\w)#e', "chr(hexdec('$1$2'))", $line);
but this useful for this string:"c8d3e320c7e1e1f8e520c7e1d1cde3e420c7e1d1cdede3fe"
and I wanna to conver string for example:- "\'c8\'d3\'e3\'20\'c7\'e1\'e1\'f8\'e5\'20\'c7\'e1\'d1\'cd\'e3\'e4\'20\'c7\'e1\'d1\'cd\'ed\'e3\'fe"
This mean any character started with \'
how to change pattern?
thanks +Akam
Problem solved with this pattern
$line = preg_replace("#\\\'(\w)(\w)#e", "chr(hexdec('$1$2'))", $line);