import re


def are_actions_valid(actions):
    """ Verifies that the actions for the trail are numbers (0-3) or
    letters (L,R,F,N) with no other items."""

    ACTIONS_RE = "^[0123FLRNflrn]+$"

    if re.match(ACTIONS_RE, actions):
        return True
    else:
        return False