in reply to Remove all non-numeric characters except for an optional negative sign (-)

Hi AM,

/-?\d+/
can do the job. '?' is for zero or one occurrence. Update: Greeting is changed.
  • Comment on Re: Remove all non-numeric characters except for an optional negative sign (-)
  • Download Code