I'm trying to parse the class name:
public class Script {
}
And I'm using regex at the moment but it doesn't work as good as I though, my regex
class\s+(.*?)\W
But when things like extends and implemented comes in it's breaking itself.
I'm making a script that downloads sources from pastebin and auto saves it.
Thanks.