Regex 101
Testing
echo "My stuff" | grep "^My"
Examples
Starts with
echo "A" |grep "^A"
echo "AAAAAAAAAAA" |grep "^A"
Starts with any number of As and Ends With
echo "AAAAAAAAAAAB" |grep "^A*B$
Match Start and End with anything in the middle
Look like \b is the better approach to ^ and $
echo "AxxxxxxxB" |grep "\b\A\w*B\b"