@finds = $data =~ m/(?:$keywords)\s*.{0,1500}\s*$startstring(.*?)$endstring/gis; #### Security Ownership bla bla Foo bar
more than 5% Text text
All Directors and Executive Officers Even more text