# How get only numbers from a string

**URL:** <https://discourse.julialang.org/t/how-get-only-numbers-from-a-string/61524>\
**Category:** General Usage\
**Created:** [May 20, 2021, 3:47pm UTC](https://discourse.julialang.org/t/how-get-only-numbers-from-a-string/61524 "2021-05-20T15:47:21Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![ellocco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ellocco/32/31331_2.png) [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Post date:** [October 12, 2022, 2:44pm UTC](https://discourse.julialang.org/t/how-get-only-numbers-from-a-string/61524/9 "2022-10-12T14:44:36Z")

</div>

and if `a` contains real numbers you might use regular expressions:  
[parse by means of regular expression](https://discourse.julialang.org/t/extracting-a-float-from-a-string/43126/8)

---

_[View the full topic](https://discourse.julialang.org/t/how-get-only-numbers-from-a-string/61524)._
