I will answer your second question: and also find a string whose length is a multiple of 5.
This is more suitable for regular expression than the number number (which was answered), only 5 characters and match with them
^(?:.{5})*$
See here at Regexr
^ and $ matches the beginning and end of a line.
.{5} matches 5 characters (except for newlines if you do not use the s modifier)
(?:.{5})* repeats the inside of the group 0 or more times ==> this will also correspond to an empty line! If you do not want this and start only with a line length of at least 5, use the quantifier + means 1 or more: ^(?:.{5})+$
stema source share