---
title: "Discussion on \"How  to extract numbers (integers) from a string using a function\" | Hashnode"
description: "Discussion on \"How  to extract numbers (integers) from a string using a function\". Create a function to extract integers (numbers) from a string using javaScript."
url: "https://hashnode.com/posts/how-to-extract-numbers-integers-from-a-string-using-a-function/630124fb74730d13020f2ec0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to extract numbers (integers) from a string using a function](https://davidgillick.hashnode.dev/how-to-extract-numbers-integers-from-a-string-using-a-function?utm_source=hashnode&utm_medium=feed)

Create a function to extract integers (numbers) from a string using javaScript.

Aug 20, 2022 · 5 min read · davidgillick.hashnode.dev  
Updated Aug 22, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#array-javascript-array-methods-map-filter-foreach](https://hashnode.com/tag/array-javascript-array-methods-map-filter-foreach)
-   [#learn-coding](https://hashnode.com/tag/learn-coding)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#javascript-function](https://hashnode.com/tag/javascript-function)

## Written by

[Dave Gillick](https://hashnode.com/@Woolley)

@Woolley · London, UK

  
[View profile](https://hashnode.com/@Woolley)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
