I am trying to convert python code into Java and I don't know the Java equivalant of re.match() and .group() in Python. Code example:
identifierMatch = re.match("[a-zA-Z_]+[a-zA-Z0-9_]*", self.commentsRemoved[self.tokenIndex:]) self.currentToken = identifierMatch.group(0)
I have been stuck on this for quite a while and would be very happy if someone can help me with this!
Thank you very much in advance!