1

I'm using a custom regex replace method found here. I put in my own method

UPDATE `catalog_product_entity_text` 
 SET `attribute_id` = regex_replace('^[^.]*^(.*?)\:', '<b>^[^.]*^(.*?)\:</b>', attribute_id)

But when I run this the database gives me the error;

Got error 'repetition-operator operand invalid' from regexp

It says in the documentation in the link above that the NO_BACKSLASH_ESCAPES mode must be set to ON but I'm not sure if this is the issue or how to do this. I have MySQL 5.5.

vhu
  • 12,244
  • 11
  • 38
  • 48
davidelias16
  • 91
  • 1
  • 10

0 Answers0