span タグで最初の単語をラップする方法を見つけようとしています。ラップするテキストは、常に最後のリンクの後に続きます
<div class="style1">
<a class="style2" href="http://www.example.com">a</a>
<a class="style3" href="http://www.example.com">b</a>
test test test test test test test
</div>
test
最初に包んでもらいたい<span>test</span>
ここでより詳細なソリューションで使用されます