Generation

regexThu, 24 Nov 2022

From a string, assign everything before -- to the product_ref group and then everything between -- and _ to the attribute_ref group

/(?<product_ref>^[^\-]*)(?<attribute_ref>\-\-.*?_)/

Want to kickstart your project?Use the new AI Studio to create your code