In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

RegEx to fetch values between html tags

Adam_Mitchell
6 - Meteoroid

I'm trying to sum up values that are held in a HTML string. I have many records, each with a string like below The values i want to sum up are in between the tags <value></value>. So i'd expect a column at the end to total up the figures in bold below (40,178.9)


<tprAAList><tpr><seqNo>1</seqNo><tprId>00132</tprId><effectiveDate>2022-10-01</effectiveDate><effectiveToDate>2023-03-06</effectiveToDate><value>4652.1</value></tpr><tpr><seqNo>2</seqNo><tprId>00206</tprId><effectiveDate>2022-10-01</effectiveDate><effectiveToDate>2023-03-06</effectiveToDate><value>10613.6</value></tpr><tpr><seqNo>3</seqNo><tprId>00230</tprId><effectiveDate>2022-10-01</effectiveDate><effectiveToDate>2023-03-06</effectiveToDate><value>23215.8</value></tpr><tpr><seqNo>4</seqNo><tprId>00249</tprId><effectiveDate>2022-10-01</effectiveDate><effectiveToDate>2023-03-06</effectiveToDate><value>801.0</value></tpr><tpr><seqNo>5</seqNo><tprId>00252</tprId><effectiveDate>2022-10-01</effectiveDate><effectiveToDate>2023-03-06</effectiveToDate><value>896.4</value></tpr></tprAAList>

3 REPLIES 3
binu_acs
21 - Polaris

@Adam_Mitchell One way of doing this

binuacs_0-1686398084175.png

 

Qiu
21 - Polaris
21 - Polaris

Sorry just find the solution is same as @binu_acs 

Adam_Mitchell
6 - Meteoroid

Great work! i was so close... i just didnt have the Regex set to tokenize. Thanks for the help

Labels
Top Solution Authors