Regex in bash: extract string with single or double quotes – WordPress
I would like to extract database access information from a wordpress wp-config.php file. Example (double quotes): define( "DB_NAME", "mydatabase" ); But it might as well look like this (single quotes) define( 'DB_NAME', 'mydatabase' ); A mixed version is also possible:…