Hi,<br><br> I have to extract a substring for a line of text. I have the line of text within $_ and need to extract a numerical value after a constant string in the line (hence I know where it will be).<br><br> I have an idea of how to do this with a substr command, however is there a way of moving the current string matching position to the start of the substring I want?<br><br>e.g.<br><br>To extract the number 32 from the following <br><br>Preparing the Exercise Activity Log for CPU on path 32 file<br><br><br>I wouldn't be able to use the normal substr with numbers as the CPU bit could be something like MEMORY, or another keyword...<br><br>Any ideas greatly appreciated.<br>Cheers<br>Loon<br><br>