I want the Word Fiber to be highlighted which are within opening and closing tags (>here<)
Sample Input:
<p>
<img src="../../../../Resources/Images/ZW (General)/ZW Fiber Closeup.png" class="Fiber" /> //Fiber within the tag shouldn't get highlighted
Fiber //Just this Fiber to get highlighted
</p>
Sample input 2:
<h1>Fiber. dsdfsf</h1> - Highlight Fiber
<h2>fdsfsd Fiber, </h1> - Highlight Fiber
<h3>dFiber</h3> - ignore -Fiber
<li> Fiber-Fiber - ignore this -Fiber
Fiber - - Highlight Fiber
Fiber. - Highlight Fiber
</li>
<li>Fiber </li> - Highlight Fiber
<li>My name is Fiber Vas</li> - Highlight Fiber
<variable class=" Fiber ">Fiberd</variable> - ignore Fiberd and ignore Fiber in class=" Fiber "
<h2 class="Fiber">Fiber</h2>- ignore Fiber within class="Fiber" and - Highlight Fiber which is within >< tags
So to explain this: (?<=\"\>) => This will extract words after ">
\w+ => will extract all the words after that
((?=<) => This is like a limiter, it limits the text before < tag
If you are you using assign activity then refer below code System.Text.RegularExpressions.Regex.Matches(YourinputString,"(?<=\"\>)\w+(?=\<)")