findValidAuthors(self,
str,
rxnName,
checkRxn=False,
checkStop=True)
|
|
Uses regex to find the valid authors.
Eg,
s="M. Amadori, Atti Accad. Naz. Lincei (6), 337 (1925), C.A. 20, 902 (1926); ibid. (6), 68, 226 (1929), C.A. 23, 3211, 3443 (1929). Conversion of N -glycosides of aldoses to N"
>>> r = re.compile("(([A-Z]\.\ *)([A-Z]+[a-z]+)+(,|\.))+")
>>> pmatch(r,s)
['M. Amadori,']
s="L. Claisen, Ber. 45, 3157 (1912). Migration of a carbon-carbon double bond in a three carbon (allylic) system on treatment with nucleophiles under S N 1 conditions (or under S N 2 conditions when the nucleophilic attack takes place at the"
>>> pmatch(r,s)
['L. Claisen,']
|