import re


def get_dver_from_string(s):
    """Get the EL major version from a string containing it.
    Return None if not found."""
    match = re.search(r'\bel(\d+)\b', s)
    if match is not None:
        return match.group(1)
    else:
        return None