Jump to content

preg replace non numeric


l0ve2hat3

Recommended Posts

Jay, you don't need to escape the dot in your character class.. most meta characters loose their special meaning within the class.. the dot is one of those characters that do.. so [^\d.] would also work (no harm in escaping them otherwise, but not necessary).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.