Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

RegEx Parsing Help

mtwilliamson
7 - Meteor

I'm trying to parse the DownloadHeaders field which is returned from an API call to Azure DevOps.  Specifically I'm trying to get the value (in Itallic below) after the X-MS-ContinuationToken field.  I've tried using Text to Columns using the ":" delimited with limited success and watched videos on using RegEx. 

 

Could someone provide the proper RegEx syntax to pull only the value from the X-MS-ContinuationToken field?

 

Below is an example section of the data returned in DownloadHeaders:

 

X-FRAME-OPTIONS: SAMEORIGIN
X-MS-ContinuationToken: eyJTY29wZUlkIjoiNDNjODI4MzItMTQzOS00OGY0LWE0OTItY2QyMGM5MjFkYjJlIiwiUGFnZVNpemUiOjUwMCwiSW5jbHVkZUdyb3VwcyI6ZmFsc2UsIkluY2x1ZGVOb25Hcm91cHMiOnRydWUsIlBhZ2VuYXRpb25Ub2tlbiI6ImI2NDFiMWJiLTVkYWQtNjViZS1hMzI4LTgwMTA5ZDNiYjFhZiJ9
Request-Context: appId=xxxxx

 

Thank you

6 REPLIES 6
messi007
15 - Aurora
15 - Aurora

@mtwilliamson,

 

Please see below:

messi007_0-1612466039950.png

Attached the workflow,

 

Hope this helps,

Regards

mtwilliamson
7 - Meteor

Hi Mess,

Thank you for the quick response.  I'm not able to get the RegEx to work.  I still get the other fields.

 

Here are my results:

 

[RegExOut1]
eyJTY29wZUlkIjoiNDNjODI4MzItMTQzOS00OGY0LWE0OTItY2QyMGM5MjFkYjJlIiwiUGFnZVNpemUiOjUwMCwiSW5jbHVkZUdyb3VwcyI6ZmFsc2UsIkluY2x1ZGVOb25Hcm91cHMiOnRydWUsIlBhZ2VuYXRpb25Ub2tlbiI6IjQxNGM3MjBjLWEyMDgtNjI1NC05OGM3LTQzYTRmYzc2M2VkZSJ9
Request-Context: appId=cid-v1:bc4abf5c-496b-4715-b19d-02137b6d6946
Access-Control-Expose-Headers:

messi007
15 - Aurora
15 - Aurora

@mtwilliamson,

 

Could you share the sample workflow please.

Strange, because I'm getting the good result.

 

Regards,

 

messi007
15 - Aurora
15 - Aurora

@mtwilliamson,

 

Could you share the sample workflow please.

Strange because I'm getting the good result.

 

Regards,

 

mtwilliamson
7 - Meteor

Hi Mess,

I changed the Regular Expression to:

 

ContinuationToken:\s(.*)\nRequest-Context 

 

and now it works.  Thank you for the help.

 

messi007
15 - Aurora
15 - Aurora

@mtwilliamson,

 

Happy to help !

 

Regards,

Labels