REGEX-Escape for: <div class="li url" data-url="component/icon" title=&quo...

Your Input:
Result, the escaped string:
\
\ \\<\/span\> \<\/span\> \Icon\<\/span\> \<\/div\>


Ads

What must the escaping look like for:
<div class="li url" data-url="component/icon" title="Icon"> <span class="icon"> <span class="-ap icon-book2"></span> </span> <span class="label">Icon</span> </div>

The excaped text for use in a regex is:

\<div class\="li url" data\-url\="component\/icon" title\="Icon"\> \<span class\="icon"\> \<span class\="\-ap icon\-book2"\>\<\/span\> \<\/span\> \<span class\="label"\>Icon\<\/span\> \<\/div\>


Ads