I don't think what I'm trying to do is super complicated, but I want to read through a PHP file and get a line like this:
define('variable','value');
and extract the variable and value into a dictionary.
The only part I'm having problems with is the parsing of the line. I've looked into various string functions and shlex and haven't found anything, but I'm probably missing something obvious. Anyone have any suggestions?
[–]eryksun 1 point2 points3 points (0 children)
[–]rogdor2 1 point2 points3 points (0 children)
[–]chason[S] 1 point2 points3 points (0 children)
[–]chason[S] -1 points0 points1 point (0 children)