Regex Guide
- Classes:
\ddigit,\wword,\sspace,.any - Quantifiers:
*0+,+1+,?0/1,{2,4}range - Anchors:
^start,$end,\bword boundary - Group:
(abc); alternationa|b; class[a-z] - grep:
grep -E "pattern"(extended),-oonly the match - sed replace:
sed -E 's/(old)/[\1]/g' file - Rough email:
[\w.-]+@[\w.-]+\.\w+