How can I use a regex in java for the following?
String code = "import java.io.*;" +
"import java.util.*;" +
"public class Test1 extends Exam{" +
" // my code " +
"}";
from the String above how can I get the class name Test1 exactly.
extends?/.*class (\S+) .*/