title: How to remove ETX character from the end of a string? (Regex or PHP)
body: <p>How can I remove the ETX character (0x03) from the end of a string? I'd either like a function, otherwise I can write a regular expression, all I want to know is how to match the ETX character in a regular expression? <code>trim()</code> doesn't work.</p>