I have a string describing a [ variable operator value ] structure like this:
type == 'prova' && padposition == "stefano" or 10>var_name
I need to build a regular expression to extract the variable name list:
type
padposition
var_name
to apply a post processing on them (basically converting them into key of a PHP array):
$arr_name['type']
$arr_name['padposition']
$arr_name['var_name']
I've found the way to match string delimited by single or double quotes:
('|")(\w*\w)('|")
but I'm not able (I'm too ignorant!) to negate it or simply to extract any word non single or double quote delimited.