I am trying to write a regular expression to get data off of large output files. The data that I need is actually on the line right after what I'm searching. For example, an NP with a number below it, a U with a number below it and a Pu with a number below it.
The numbers change, but the elements stay the same above them. How can I use regex to find the nth record on the NEXT line following my search?