Because String.split(String) returns an array, the last element of the array is accessed with array syntax whether in Java or in Groovy. This approach is also mentioned in Java: Fastest Way to Get ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results