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>\-\-.*?_)/

Questions about programming?Chat with your personal AI assistant