This should be obvious, but I'm having trouble.
I want to replace several characters (dashes, spaces, underscores) with an empty string, but I've got something wrong.
This code: $tmp = preg_replace('/[ -_]/', '', 'filename-1055');
...returns this: "filename"
...when I'm expecting this: "filename1055"
Why the truncation?