verdrm Posted July 28, 2010 Share Posted July 28, 2010 I need to extract "C:\Documents and Settings" from the last line of this data every time it appears. It is always between DirectoryName REG_SZ and HKEY. DirectoryName REG_SZ C:\Documents and Settings HKEY How can I extract "C:\Documents and Settings" or whatever the value is multiple times using PHP? Quote Link to comment Share on other sites More sharing options...
ChemicalBliss Posted July 28, 2010 Share Posted July 28, 2010 preg_match_all(); PCRE functions are invaluable. php.net/manual Head over to the REGEX sub-forum for more details on your question. -cb- Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.