import re


def try_find_newton_jobs(text):
    """Search for newton marjer on the page and return the client id if found."""
    # for simplicity, we think that no other CGI-params is specified
    # we might look for the handler with text.find(), then extract the whole url from the position
    # and then parse the query_string looking for the clientId
    pattern = r'//newton[.]newtonsoftware[.]com/career/iframe[.]action[?]clientId=([0-9a-f]+)'
    match = re.search(pattern, text)
    if match:
        return match.group(1)