Multiline text prefixes search