I am trying to save the groups in a string to an array so that I can use them in individual variables if I need to. For this I use split but for some reason I only
The split takes an regular expression and $ is a special character (end of string) so you have to escape it with backslash \. Anyway it is also special character, this time in Java, so you have to escape it also. The final code is: