I would like to check, if a text contains a telephone number or not.
Regex = /\d{6,}/;
This would check for 6 digits in a row, but phone numbers can also contain space, +, (, ), -, . and slash...
How would I check against any kind of telephone number?
I would like to detect numbers in these forms:
+49 123 456789
0049 123456789
(040) 132 45 67
040/123 456
040-132-12
040 123456
+49 (0)40-123456