TASK: Write a program in C/C++ that translates a pattern specification provided as an command line argument into a regular expression, processes lines of input text received from stdin using that regular expression to qualify matches, and finally writes each matching input line to stdout. Each line of input is terminated by the newline character '\n', and the program should terminate when it receives EOF.