Something goes wrong if you use a " in your regex.
OC example data:
{
"Title": "My title",
"Text": "<h2>HTML Title</h2>\n\n<p><h2>HTML endoded Title</h2></p>\n\n<p>This is a test with "Quoted Text" to ee if we can use it to replace.</p>\n\n<p> </p>\n",
"_id": "60f04998c937df03e8b41e15"
}
Search test:
"Text": "(.*?)"
Replace text:
"Texts":
[
{
"Title": "",
"Text": "$1"
}
]
Result:
You can see that the matching stops at the (in the database) HTML encoded Quote, which is not correct.
When replacing text like this:
Test text with "quotes"
Something goes wrong if you use a " in your regex.
OC example data:
Search test:
"Text": "(.*?)"
Replace text:Result:
You can see that the matching stops at the (in the database) HTML encoded Quote, which is not correct.