View Full Version : Explode to Extract Only Letters and Numbers
How can I explode a variable so that it takes out any punctuation (or anything that isn't a letter/number) and then saves the new content to a new variable.
-.Xibe.35- would return as: Xibe35
Please help!! :)
08-07-2007, 11:42 PM
You can use regular expressions.
$pattern='/[^a-z0-9]/i'; //find everything that is not a letter(case insensitive) and not a number.
Thanks a lot for helping me out there! :)
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.