<[^>]*>(*SKIP)(*F)|(\/|\s|^|\()(Dakota Ridge.*?)(,|\.|\s|\b|\)|<) matches
Dakota Ridge in the string
The Dakota Ridge Trail is open. as expected.
If I wrap
Dakota Ridge Trail in HTML tags, however, the string is no longer matched:
The <b>Dakota Ridge Trail</b> is open.
I thought the
^ alternative would assert that the string is anchored at the start since
(*SKIP) prevents the engine from backtracking past that point but apparently it doesn't work that way.
How can I modify this expression to match if the string is anchored at the first position after a skipped and failed match?
Edit to clarify: The purpose of
<[^>]*>(*SKIP)(*F) is to skip HTML tags that could potentially contain the pattern within.