I am new to python and I tried to read a PDF map using (PyPDF2). I am getting this as output Sample output of pdf map as text. I want to extract the data from this output where a certain pattern matches [RIY-DIRAHH-015524.49121946.651068]. I need only those values which only have this pattern. The length of the pattern varies [30-34]. Fixed for [RIY-DIRAHH-0155] while change only happens in LAT/LONG [24.49121946.651068]. Complete output of PDF MAP.
Please help to extract/split the specific values (matches pattern). If there is any other solution available for reading PDF MAP. kindly advise. Thanks in advance.
import re
x='result of PDF map'[image1]
result = re.search('\w{3}-\w{6}-\d*.\d*.\d*',x)
#output
['', '', '', '', '']