I use this regular expression to detect 10 digits phone number:
/[0-9]{10}|[0-9]{3}.[0-9]{7}/gs
It detects things like: 050-1231231, 0501231231 and even: 050 and 1231231
I would like to detect the number even if it's across 10 lines like so:
0
5
0
1
2
3
1
2
3
1