Regex 101: Difference between revisions

From bibbleWiki
Jump to navigation Jump to search
Created page with "=Testing= echo "My stuff" | grep "^My" =Examples= =Starts with= <syntaxhighlight lang="regex"> echo "A" |grep "^A" echo "AAAAAAAAAAA" |grep "^A" </syntaxhighlight>"
 
Line 3: Line 3:
=Examples=
=Examples=
=Starts with=
=Starts with=
<syntaxhighlight lang="regex">
<syntaxhighlight lang="bash">
echo "A" |grep "^A"  
echo "A" |grep "^A"  
echo "AAAAAAAAAAA" |grep "^A"  
echo "AAAAAAAAAAA" |grep "^A"  
</syntaxhighlight>
</syntaxhighlight>

Revision as of 02:37, 11 April 2021

Testing

echo "My stuff" | grep "^My"

Examples

Starts with

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