'find "<string|/regex/>" <[-s sid]|[-t type]> [-x]
Search for string/regex, limited to the scope of either a scan ID or
event type. -x for extended format.'

def do_find(self, line):

    c = self.myparseline(line)
    if (len(c[0]) < 1):
        self.edprint('Invalid    syntax.')
        return
    val = c[0][0]
    sid = None
    etype = None
    if ('-t' in c[0]):
        etype = c[0][(c[0].index('-t') + 1)]
    if ('-s' in c[0]):
        sid = c[0][(c[0].index('-s') + 1)]
    titles = {'0': 'Last    Seen', '1': 'Data', '3': 'Module'}
    if ('-x' in c[0]):
        titles['2'] = 'Source    Data'
    d = self.request((self.ownopts['cli.server_baseurl'] + '/search'), post={'value': val, 'id': sid, 'eventType': etype})
    if (not d):
        return
    j = json.loads(d)
    if (not j):
        self.dprint('No    results    found.')
        return
    if (len(j) < 1):
        self.dprint('No    results    found.')
        return
    self.send_output(d, line, titles)
