Using Perl Regex from bash

perl -e '$in_arg = shift; $in_arg =~ /(<REGEX>)/; print($1);' "<STRING_ARG>"