I'm looking for a Perl regular expression to find a 10-digit number with optional spaces or other characters inside it. The regex should find these examples:
This UltraEdit regex works: [0-9][~0-9]++[0-9][~0-9]++[0-9][~0-9]++[0-9][~0-9]++[0-9][~0-9]++[0-9][~0-9]++[0-9][~0-9]++[0-9][~0-9]++[0-9][~0-9]++[0-9].
But I can't figure out the equivalent Perl regular expression.
Code: Select all
1234567890
123-456-7890
123/456-7890
123.456.7890
123 456 7890
But I can't figure out the equivalent Perl regular expression.