Reputation: 455
I have a string:
pRoiGroup="[com.testing.Location#533bfa78d3f9645043e4eb25]"
I want to get the string "533bfa78d3f9645043e4eb25"
from pRoiGrop
. how can I do this ?
Upvotes: 0
Views: 128
Reputation: 171194
Or:
def result = pRoiGroup.find( /#([a-f0-9]*)]/ ) { it[ 1 ] }
Upvotes: 0