Sometime we need to quickly parse PHP code. When no reason to use full AST parser, we can use regular expressions for find constants.