def str = 'https://w...content-available-to-author-only...s.net/path?token=eyJ0eXAiOiJKV1Qi&value=123456789' def map = new URL(str).query?.split('&').collectEntries{ [(it.split('=').first()): it.split('=').last()]} println map.token println map.value