I have the following regex
<div class="dotted-highlight">\s*[^<strong>]\s*(.*?)\s*[^</strong>]<ul>
and string
<div class="dotted-highlight">So, to sum up your own appearance:
<ul>
<li>Your hair must be neat and tidy.</li>
And I am trying to replace it with
<div class="dotted-highlight"><strong>$1</strong><ul>
Just that $1
returns the string but with the first letter omitted.
CURRENT OUTPUT:
---------------------------------------
|
V
<div class="dotted-highlight"><strong>o, to sum up your own appearance:</strong><ul>
EXPECTED OUTPUT
<div class="dotted-highlight"><strong>So, to sum up your own appearance:</strong><ul>
LIVE EXAMPLE