I have this so far:
preg_replace("([^\.\?\!]NNNNNNNNNN)[\.\?\!]","",$string);
and I also tried
preg_replace("([^\.\?\!]\N\N\N\N\N\N\N\N\N\N)[\.\?\!]","",$string);
But it’s removing everything in $string.
The text I need to find (and remove the containing sentence) is: “NNNNNNNNNN”
Ideas?
What about something like this:
I’ll break it down, but I don’t know if it will work.
(^|[.?!])– the end of the previous sentence – captured[^.?!]*– possible multiple things that are not a end of sentence indicatorN{10}– what you want to match[^.?!]*– possible multiple things that are not a end of sentence indicator[.?!]– the end of your sentenceResults in PHP: