def group_val(group):
if group:<EOL><INDENT>return int(group)<EOL><DEDENT>else:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>
Returns value of regular expression group, if valid. 0 if not

    Argument:
        group - group to get value of