'Search for all instances of a pattern in virtual memory ranges
Args:
- search: string or python regex pattern (String)
- mapname: name of virtual memory range (String)
Returns:
- list of found result: (address(Int), hex encoded value(String))'

def searchmem_by_range(self, mapname, search):

    result = []
    ranges = self.get_vmmap(mapname)
    if ranges:
        for (start, end, perm, name) in ranges:
            if ('r' in perm):
                result += self.searchmem(start, end, search)
    return result
