I have a large text and the aim is to select all 10-character strings for which the first character is a letter and the last character is a digit.
I am a python rookie and what I managed to achieve is to find all 10-character strings:
ten_char = re.findall(r"\D(\w{10})\D", pdfdoc)
Question is how can I put together my other conditions: apart from a 10-character string, I am looking for one where the first character is a letter and the last character is a digit.
Suggestions appreciated!
[A-Za-z]and[0-9]to tell it the character at this position should be an alphabetical character or a digit.