In comp.lang.javascript message <11**********************@x35g2000prf.go
oglegroups.com>, Fri, 13 Jul 2007 14:25:26, "la***********@zipmail.com"
<la***********@zipmail.composted:
>I'm trying to replace all non-numeric characters with nothing in my
variable. However, this doesn't seem to work ...
var myMixedVar = myMixedVar.replace(/^[0-9]/, "");
Any suggestions what I should have as the reg exp instead?
/\D/g
See references via <URL:http://www.merlyn.demon.co.uk/js-valid.htmor
the link at the one instance of "regexp" in the FAQ.
<FAQENTRYTo that FAQ link should be added one to a similar reference
including newer features; or a new question should be added to introduce
an answer including a set of RegExp references.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.