I have a regex that currently validates fields containing only numbers. The pattern is /^\s*\d+\s*$/. It works well for numbers like 15544447777 or any other length of numbers.
Now, I need to expand the regex to validate combinations such as:
11232-23423-1223235-11
or
12312 23423235235 123123
I want the regex to match any combination of numbers, symbols, and white spaces. Most threads I've seen are focused on fixed number lengths, but I need a regex that can verify any length.
If anyone can help me with this, I would greatly appreciate it.
Thank you