JavaScript regex: find non-numeric character -
Say I have these two strings: "5/15/1983" and "1983.05.15" All the characters in the string can be visible anywhere in the string, which will be numeric, except the "separator" character. There will be only one separator character; All the examples of any non-numeric character in the string are the same.
How can I use regex to remove this character? Is there a more efficient way down?
"05-15-1983" .replace (/ \ d / g, "") [0];
Thanks!
"05-15- Technically, this gives a string containing a string, But this will convert most of the strings inherently that you need it. / div>