This is for Oracle, not MySql in case there might be a slight difference.
I am trying to get paths of this url
select regexp_substr(
'https://domain/l202108091338.csv.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAQ6R%2F20210820%2Fca-central-1%2Fs3%2Faws4_request&X-Amz-Date=20210820T223109Z&X-Amz-Expires=300&X-Amz-Signature=bd3d40250afdc751c67c58302a2ca152c7&X-Amz-SignedHeaders=host',
'[^=]+',
1,
2
) from dual;
the above command outputs
AWS4-HMAC-SHA256-Amz-Credential
but the actually value is
AWS4-HMAC-SHA256&X-Amz-Credential
How can I make the output includes &X
too?
Thanks in advance for any suggestions and help.