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

What is this you're trying to parse, some kind of config file?

It is a fragment of a wordpress/wp-admin/setup-config.php file

It is a fragment of a wordpress/wp-config.php file, uggg

Replies are listed 'Best First'.
Re^3: Assigning mapped regex to a list
by haukex (Archbishop) on Feb 27, 2017 at 21:15 UTC
    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.

      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.
Re^3: Assigning mapped regex to a list
by huck (Prior) on Feb 27, 2017 at 21:24 UTC

    I wish i knew why i am only seeing my typos when i look at the posted page, and not in the preview or edit box

    in this case i hilited the wrong file before clicking on save-results in agent ransack. saw it clear as day in the post.