Well, this depends on your language's literal representation of regexes.
If they are just a string of white-noise (as per usual), then you can
naturally write regexes to match that particular string of white-noise.
If you have a sneakier representation scheme, like a structural lexer
definition (as is optional in CL-PPCRE), then you'd need a string
representation of that structure and then a regex to match that.
Jacob Beauregard <[log in to unmask]> writes:
> Has anyone ever written a regexp expression for matching regexp
> expressions? Is it possible?
> I just used a regexp in the most hideous way today because of the lack
> of love for lambdas in PHP 5.2, and somehow this question popped into
> my head.