regex.py 450 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# *-* coding: utf-8 *-*
""" A collections of regular expression used to applied rules 
on field contents.

@author: R. Le Gac

"""
# Collaboration field:
#  - CMS Collaboration
#  - CMS and LHCb Collaborations
#  - ATLAS Collaboration, CMS Collaboration
#  - Heavy Flavour Averaging Group 
#  - CTA Consortium
#  - any mixture of the above separated by a comma
#
16
REG_COLLABORATION = r'^[A-Za-z0-9\-/, ]+([Cc]ollaboration|[Cc]onsortium|[Gg]roup)[s]?$'