regex first 2 characters code example
Example 1: regex for first three characters
^.{0,3}
.{0,3}$
Example 2: regex match two characters
echo %H#E%L#L%O! | sed 's/[#%]//g' #replaces every appearance of any of
two characters # and %
^.{0,3}
.{0,3}$
echo %H#E%L#L%O! | sed 's/[#%]//g' #replaces every appearance of any of
two characters # and %