I have some columns in my db where entries are in the following form:
["some text - more text & text","some other text - more text & text"]
At that time, having strings inside arrays made sense but I now want to update these columns where I have arrays with just strings to just get the text inside the zero-eth index of the array.
So in this case capturing:
some text - more text & text
Would be lovely. I have tried many regular expressions for omitting [ "
or trying to capture contents inside of ""
like "(.*?)\"
but I get a syntax error in mySql query as it does not support lazy capturing.
I know the before regex would still select values like "some text - more text & text"
but thought that at least I would be closer to the goal and then trimming the string as substring to omit the first and last index where the ""
are. Any help?