Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

extract numbers from a string javascript

const extractNumbers = (string) => {
  const regex = /[0-9/ /]/g;
  const nums = string.match(regex);
  const newText = nums.join("");
  
  return newText
};
Source by www.textbotonline.com #
 
PREVIOUS NEXT
Tagged: #extract #numbers #string #javascript
ADD COMMENT
Topic
Name
2+3 =