<img...AND the img tag above dows NOT contain a certain path
Here is what I have:
<img\s.*(src).+>
This matches if my string contains "<img .....src.....>" (the dots can
be anything, I dont care). However, after the "src" part and before the
character, the "thisfolder/thatfolde" string can be found, I do NOT need a match. If this string is missing, I DO need a match.I want to allow users to insert images from a certain path, but prevent
them to insert any images from elsewhere. I dont need replace
functionality, just an alert.
Thank you in advance!
Keke