0

I have the following test to parse via regex

{id=ID, catalogId=A2A01, marketingCode=CODE, productId=PRODUCT_ID, sku=SKUINFO}

I am using the following Regex pattern

(?<=marketingCode=)(.*)(?=, )

However is matching

CODE, productId=PRODUCT_ID

How do I make it just match

CODE
John Hamlett IV
  • 465
  • 9
  • 20

0 Answers0