I am wondering what would be a regular expression that would detect any function declaration which has a body containing a call to itself in Java.
Example of a method that would match:
public int method()
{*n
method();
}*n
Thank you for any help.
Stringliteral that contained a{or}character? Just some simple counterexamples that would break any regex-based approach.