This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char *argv[]) | |
{ | |
// take in one command-line argument only | |
if (argc != 2) | |
{ | |
fprintf(stderr, "Wrong!\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! python3 | |
import re, pyperclip | |
# Create a regex for phone numbers | |
phoneRegex = re.compile(r''' | |
# 415-555-000, 555-0000, (415) 555-0000, 555-000 ext 12345, ext. 12345, x12345 | |
( | |
((\d\d\d) | (\(\d\d\d\)))? # area code optional |