Relative Content

Tag Archive for regexregex-look-ahead

Regex lookahead with consecutive elements

I’m trying to match a specific element with regex that is followed by a particular closing tag, but am having trouble where the text contains more than one of those elements. So in this code I want to match the second whole strong element because it’s followed by a closing p