Jump to content

Strip All Non-Alphanumeric Characters


Printaccel

Recommended Posts

Posted

Hi,

 

I thought I saw this once, but of course now that I need it, I can't find it anywhere. I'm sure its probably very simple, but I am a total noob to JavaScript.

 

I need to be able to strip a field of anything non-alphanumeric, and convert what's left to lower case.

 

I know there is a rule for the lowercase, and if I am correct, I think I can exchange Rule("Rulename")

Posted

Thanks Dan.

 

That one is much simpler than the scripts I was finding when I googled it. They were about 30 lines long and I had no idea what to replace for field.

 

I very much appreciate it!

 

Tina

 

(Oh and thanks for the links too) :)

Archived

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

×
×
  • Create New...