Ok I will admit I suck at making regex patterns.
I want to transform the value to be all lowercase, _ instead of
spaces, and no special chars. (Basically a websafe filename). Here is
what I have. It works all except stripping out special chars.
Any help would be great.
v = v.toLowerCase();
v = v.gsub(' ', '_');
v = v.gsub('/[^a-z0-9\s]/i', '');
on 2008-06-12 23:13