i have a cookie string like this
'user=sravan;XSRF-TOKEN=1212143;session=random'
i need to check for the XSRD-TOKEN in the cookie string, if we have the XSRF-TOKEN
in the string then need to replace the value with 'test'
expected new string is 'user=sravan;XSRF-TOKEN=test;session=random'
i tried this (?<=XSRF-TOKEN).*$
but it is selecting the entire string after XSRF-TOKEN=