I need to delete any character that’s not 0 through 9, a through z, or A through Z.
heres my code:
$alt = preg_replace('/[^0-9a-fA-F]/', '', $_POST['alt-text']);
right now if i enter “alt text” in it turns it into “ae”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have a-f instead of a-z, same for A-Z.