Here you find a list of usefull regular-expressions (regexp)

Match lines that have a length between 20 and 30 characters:
^.{20,30}$

Match lines that are longer than 300 characters:
^.{300,}

Match lines that are shorter than 40 characters:
^.{,30}$