$str =~ s/char\((\d+)\) ?/chr($1)/eg; [download]
Cheers,
JohnGG
In reply to Re^2: parsing and evaluating a string by johngg in thread parsing and evaluating a string by bfdi533