I've got users who tried to add a list to a response in an online training course. Here is an example of the issue I'm trying to fix.
I like to eat ramen< br />(\n)fish< br />(\n)frog legs< br />(\n)pizza
The user hit enter after each response to create a list. The newline characters aren't actually visible, but if I just delete the < br /> tag, the user response still shows the line break in Notepad++ and exports from my database improperly.
The course has been fixed so that the HTML tag and newline characters don't come through anymore, but I've got 5250 instances to clean up in a table with a few million rows.
How can I find and delete strings within a string and still keep the response intact? If Notepad++ could handle this large of a file, I'd just pull the data out and replace all instances of < br/>(\n) with a "-" or " " and then load it all back in. How can I do that using MariaDB?
(I know the < br/> tag shouldn't have a leading space, but I put the space in to keep make it visible in my question)
(\n)fish
(\n)frog legs
(\n)pizza The user hit enter after each response to create a list. The newline characters aren't actually visible, but if I just delete the
tag, the user response still shows the line break in Notepad++ and exports from my database improperly. – Supakeepa Mar 30 '15 at 15:59