Skip to content

Instantly share code, notes, and snippets.

@lthurston
Created December 22, 2010 18:49

Revisions

  1. lthurston created this gist Dec 22, 2010.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original 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