Regex 101: Difference between revisions

From bibbleWiki
Jump to navigation Jump to search
Line 1: Line 1:
=Testing=
=Testing=
echo "My stuff" | grep "^My"
echo "My stuff" | grep "^My"
=Examples=
==Examples==
==Starts with==
==Starts with==
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">

Revision as of 02:42, 11 April 2021

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"