Help with parsing

Hello, sorry if i am being dumb but i have a question. So say im trying to parse a csrf that is named “csrf_token” but it is formatted like this:

csrf_token:
Awsfd09eufhn_w0f9efhew344

how would i parse it so that i can get “Awsfd09eufhn_w0f9efhew344”? please get back to me soon, <3.

I would use regex

csrf_token:\s*([A-Za-z0-9_]+)

and then format

[1]
1 Like

thank you, i will try it