0
I have an array on the server in Nodejs, I am going through html files and I need to return the value that is in the middle of the span tag using a regular expression as it would look ?
{
< span class="filteredAds"> de teste< /span>,
< span class="filteredAds"> de teste23< /span>>
}
It is not known what may come in the middle of the tag after the.
Somebody give me a hand ?
Can’t take by class, id or tag ?
– MagicHat
Avoid regex to process HTML. Regular expressions are not a good tool for this. You should consider using some extension to do this for yourself (jsdom) and, as @Magichat suggested, capture the elements by class or tag.
– Pedro Corso
When I was performing the task I was in the back end, not the front end.
– Caio Michel dos Santos