How to grep (+(xx)xxx xxx xxx) a type of phone numer like this. I am looking for exacly (+(48)xxx xxx xxx)
Asked
Active
Viewed 57 times
-1
-
Please add to your question (no comment): What have you searched for, and what did you find? What have you tried, and how did it fail? – Cyrus May 31 '22 at 17:03
-
Does this answer your question? [grep with regex for phone number](https://stackoverflow.com/questions/2269586/grep-with-regex-for-phone-number) – Andy Lester May 31 '22 at 17:16
1 Answers
1
$ echo '+(48)123 456 768' | grep '+(48)[0-9][0-9][0-9] [0-9][0-9][0-9] [0-9][0-9][0-9]'
+(48)123 456 768

Doj
- 1,244
- 6
- 13
- 19
-
-
-
@Kvrsa The questions you're asking about are very common. Please use the search box to search for existing questions and answers. – Andy Lester May 31 '22 at 17:17