How to get data in Painless script variable

Hi,

I tested with painless script and it's handling upto 256 characters.

If I holding url values, I can extract data from it. I think it's not possible in regular search.

Thanks,
Chaitanya.