Is there a regular expression to detect a valid regular expression?.
Deleted from StackOverflow by the author, because oddly, it got many downvotes.
Reflecting on this in 2016, in the way that things changed since...
The direct answer to the question is still the resounding NO, it is impossible to implement a regular expression to find all regular expressions in your code.