I have lines of features describing the behavior of English prepositions, for 80,000 lines to process, where I'm trying to characterize, e.g., the parts of speech for the preposition 'across'.
samp = "across.p.cpa.312(2)c:l:whichc:pos:wdtc:ri:rulefired"
print(re.search(sep + 'hr:pos:([a-z]+)' + sep, line))
<re.Match object; span=(6840, 6852), match='\x18hr:pos:nns\x18'>
Note that '\x18' is a separator from the line. There are 1333 such features in a line of length 15942. But, how do I get the match out to a variable that I can then do more analysis. This is easy to do in Perl, but Python seems to make it very difficult.