JQuery get the text inside an element using special characters
I'm trying to isolate a number inside a h6 tag and wrap it in a div. <h6>[123-4] My Title</h6> To <h6> <div class="number">123-4</div> My Title </h6> How can I select and wrap the number? .text() seems to select everything and…