use regex for terminal command line
use regex for command line