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? Link to comment https://forums.phpfreaks.com/topic/209111-php-extract-string/ 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- Link to comment https://forums.phpfreaks.com/topic/209111-php-extract-string/#findComment-1092253 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.