This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I'm really new to Alteryx and Regex, and I'm having trouble parsing a pack quantity out of a description field. Here's my current expression:
Here's the expected result: But here's the output I'm getting:
Description Field Parsed Field Description Field Parsed Field
Beer 12PK 12 Beer 12PK 2
Stout 4PK IPA 4 Stout 4PK IPA 4
I thought the + sign after the /d was supposed to capture one or more digits, but it looks like regex just continues once it finds at least one digit before the string, and then stops counting. How do I get it to capture any amount of digits before the "PK" abbreviation?