added possibility to search sentences by regular expressions