Replacing Phone Numbers

Write a Python regular expression to replace all phone numbers in the format "(XXX) XXX-XXXX" with the string "[PHONE]". Assume the area code (XXX) and the rest of the number are always 3 digits and 4 digits, respectively.
You can reach me at (123) 456-7890 or my office at (987) 654-3210.
Total : 1 Discussion
Login
codeexperts
    
Test
Reply     
codepee
     25-06-2024 10:32 AM
Yes