I am working on a project in which I have several PDF files that are in image format and I have to extract certain data that is not in order, I managed to make a loop that reads the file with OCR and passes it to a notebook what I can not to do is that from that notebook I can find a word and that I copy what follows example.
I look for the Word Nit and that brings me the 123 the nuemro will always change the word not
@cristian_urrego you can refer to @lakshman’s answer. The String Split method splits a single string up into an array of strings. You can then loop through them or process them however you want.
For your specific case, if the line is “NIT 123” then you can do
item.Split(" ".ToCharArray)(1) to split the line into “NIT” and “123” and grab the second item. (Indexes start at 0 so index 1 is second piece).