Regex 101

From bibbleWiki
Jump to navigation Jump to search

Testing

echo "My stuff" | grep "^My"

Examples

Starts with

echo "A" |grep "^A" 
echo "AAAAAAAAAAA" |grep "^A"

Starts with and Ends With

echo "AAAAAAAAAAAB" |grep "^A*B$

Starts with followed by

echo "AAAAAAAAAAAB" |grep "^A*B"