#!/usr/bin/env python3
import re

import cbox


@cbox.stream()
def extract_domains(line):
    """tries to extract all the domains from the input using simple regex"""
    return re.findall(r'(?:\w+\.)+\w+', line) or None  # or None can be omitted


if __name__ == '__main__':
    cbox.main(extract_domains)

321511ee99a1c0de90b2a45ee3f8cdd14dd03b4a
<mask token>

<mask token>


@cbox.stream()
def extract_domains(line):
    """tries to extract all the domains from the input using simple regex"""
    return re.findall('(?:\\w+\\.)+\\w+', line) or None


<mask token>

<mask token>


@cbox.stream()
def extract_domains(line):
    """tries to extract all the domains from the input using simple regex"""
    return re.findall('(?:\\w+\\.)+\\w+', line) or None


if __name__ == '__main__':
    cbox.main(extract_domains)

import re
import cbox


@cbox.stream()
def extract_domains(line):
    """tries to extract all the domains from the input using simple regex"""
    return re.findall('(?:\\w+\\.)+\\w+', line) or None


if __name__ == '__main__':
    cbox.main(extract_domains)

#!/usr/bin/env python3
import re

import cbox


@cbox.stream()
def extract_domains(line):
    """tries to extract all the domains from the input using simple regex"""
    return re.findall(r'(?:\w+\.)+\w+', line) or None  # or None can be omitted


if __name__ == '__main__':
    cbox.main(extract_domains)
