# How to extract Only Number and "." from a string?

**string.replace(/\[^0-9.\]/g, "") / string.replace(/\[^a-zA-Z0-9.\]/g, '')**

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/hVfsQ4KAd20u3duv-d4803c61e73f.png)<div id="bkmrk-last-updated%3A-june-2">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">June 26, 2023</span>

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

</div>