Simple Regex needed
Moderator: General Moderators
Simple Regex needed
I'm not very good with Regex and couldn't fine a quick way to do this. I just need to replace all (will be doing this in php with preg_replace) non-character or numerals in a string. So anything not A-Z, a-z, or 0-9 should get replaced. How can I do this? Thanks in advance.
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Re: Simple Regex needed
Code: Select all
[^A-Za-z0-9]Re: Simple Regex needed
Thank yousuperdezign wrote:Code: Select all
[^A-Za-z0-9]