in reply to Re^2: How to remove an apostrophe?
in thread How to remove an apostrophe?

Find out what character it is using the snippet below, then use \x{####} instead of an apostrophe in the regexp, where "####" is the number printed by the snippet below).

printf("%X\n", ord(substr($newName, 5, 1)));