Replacing all non-alphanumeric characters with empty strings October 10, 2022 by Tarik Use [^A-Za-z0-9]. Note: removed the space since that is not typically considered alphanumeric.