0

In database, the html contents are stored as string. In there, I want to get the file names as array.

For example, the string is:

"info": [], "title": "Neues Kapitel", "videos": [], "children": [], "html1": "<p><img class=\"fr-dib fr-fil\" src=\"files\/1\/first.jpg" style=\"width: 300px;\"></p>","info": [], "title": "Neues Kapitel", "videos": [], "children": [], "html2": "<p><img class=\"fr-dib fr-fil\" src=\"files\/1\/second.jpg" style=\"width: 300px;\"></p>"

So the result file names will be: ['first', 'second']

Anyone who knows, please let me know. Thanks.

Ultimater
  • 4,647
  • 2
  • 29
  • 43
Maksim
  • 21
  • 4

0 Answers0