All pastes #183487 Raw Edit

Unnamed

public text v1 · immutable
#183487 ·published 2006-09-26 23:33 UTC
rendered paste body
# Tag 3-digit subject-count to list.
def extract_subjectID(dataLines):
        subjectID = []
        for line in dataLines:
                if re.compile("^\d{3}").search(line):
                        subjectID.append(line)
                else:
                        pass
        for id in subjectID:
                id = str.strip(id)
        return subjectID