Hello, @jade-owen,
I’m a bit perplexed ! Indeed, from your example, it looks as you would change the upper-case string ROOM with the upper-case string SPACE, when within a <div>.......</div> range, only… and NOT the LOCAL string !!
If it’s really what you want, the regex, below, should do the job, strictly !
SEARCH (?-is)(<div>.*?LOCAL..-)(.*?)(?=..-.*?</div>)
REPLACE \1SPACE
OPTIONS Tick the Wrap around and Regular expression options
ACTION Click, once, on the Replace All button, or several times on the Replace button
Best Regards,
guy038
P.S. :
Generally speaking, it’s important to point out that regexes are very dependent of the text they are applying against ! Even a simple additional space character, in a text, can break out matches detection of a well-formed regex !
So, I advice everyone, which wants a specific search/replacement, to carefully describe :
The searched text which must be matched
The replacement text which will be inserted, instead
Doing this way should help out to build the right regex(es) and assures you to get a quicker solution, too ;-))