Created
October 12, 2010 08:02
-
-
Save masanobuimai/621826 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// g100pon #22 正規表現:FQCNからクラス名を抜出す | |
fqcn = String.class.name | |
classname = fqcn.replaceAll(/(.*\.)(.+$)/) { full, m1, m2 -> m2 } | |
println classname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment