Regular expression matching fully qualified class names

A Java fully qualified class name (lets say “N”) has the structure N.N.N.N The “N” part must be a Java identifier. Java identifiers cannot start with a number, but after the initial character they may use any combination of letters and digits, underscores or dollar signs: ([a-zA-Z_$][a-zA-Z\d_$]*\.)*[a-zA-Z_$][a-zA-Z\d_$]* ———————— ———————– N N They can also not … Read more