Home Numbers Regular Expression To Get All Numbers From A String Regular Expression To Get All Numbers From A String A regular expression to match all numbers found within a string. /(\d+)/g Click To Copy Matches: RegexPattern123 123RegexPattern 123 Non-matches: RegexPattern !@#$% See Also: Regular Expression To Get The Number At The End Of A String Previous Post Regex To Remove Unnecessary Spaces In A String Next Post Regex To Match One Digit Number More Like This: Regex To Match Whitespaces Between Words Regex To Match Chinese/Japanese/Korean Characters Regex To Match Content Between HTML Tags