I need to remove any character that is not from 0 to 9, from a to z, but from A to Z.
heres my code:
$alt = preg_replace('/[^0-9a-fA-F]/', '', $_POST['alt-text']);
right now if i type βalt textβ it will turn it into βaeβ
You have af instead of az, the same for AZ.
Source: https://habr.com/ru/post/1784318/More articles:Geospatial Indexing with Redis & Sinatra for Facebook - indexingHow do you vertically center legends using the Google Graphics API? - graphHow to remove jstring sent from Native Code back to Java? - c ++Dynamically adding text field in android - javaPython Fast Monochrome Bitmap - performanceInterface Size for iPhone for iPhone - iphoneThe most elegant way to return a value from jQuery $ .each? - javascript"Cannot open image" error when using ImageMagick Filename Links - referenceregex to split a string into key / value pairs when the number of pairs is a variable? - stringUse variable inside CDATA block in Javascript? - javascriptAll Articles