Created
December 22, 2010 18:49
Revisions
-
lthurston created this gist
Dec 22, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ // This is a multiline regex so you can feed it a multi line string if(preg_match('/^.*\$typo_db_username[^\']+\'([^\']+)\'.*$/m',$test,$matches)) { $username = $matches[1]; } // Love, Lulu