in reply to Re^2: Assigning mapped regex to a list
in thread Assigning mapped regex to a list

It is a fragment of a \wordpress\wp-config.php file

Ah, ok, that makes a bit more sense. Using Perl to parse PHP... fun ;-) I don't know much about WordPress so I don't know if there might be a better way to get at these values, but I can see how a hack like this might be acceptable/necessary, as long as it's just those three variables and not too much more. Of course, if whoever edits the config file uses any more complicated PHP syntax or expressions, the above regex will break.

Replies are listed 'Best First'.
Re^4: Assigning mapped regex to a list
by Anonymous Monk on Feb 27, 2017 at 21:26 UTC
    Think about it. He's extracting info that pertains to setting up a database from the very tool that sets up the database. You are dealing with a very clever troll here.