linux 正则表达式: 查找满足以下格式的电话号码:(xxx) xxx-xxxx 或 xxx-xxx-xxxx grep -P '^(\d{3}-|\(\d{3}\) )\d{3}-\d{4}$' file.txt