added option to search inside returned data with perl regex