Search in text file

Hello all, I’m new to working with RPA and automation edge,
I need to extract specific data from PDF file, I converted the file to txt but can’t figure out how to search for a specific data in the txt file.
Thanks in advance.