|
本帖最后由 喬治兄 于 2019-5-8 02:57 编辑
此問題實為 [求助] 請賜教:正則語法 .....之未完成滴 Part 2.https://www.pdawiki.com/forum/forum.php?mod=viewthread&tid=33536&extra=
盼 站上同好對正則有研究 之 大師 再次蒞臨指導不吝惜滴賜教 .....謝謝...感恩
簡化問題如下也就是如何在所有和 headword 相同的內容中加上-----> ①headword②
aa
<a href="entry://aa">①aa②</a> , <a href="entry://AAA">①AA②A</a> , <a href="entry://aah">①aa②h</a> , <a href="entry://aardvark">①aa②rdvark</a> , <a href="entry://aardwolf">①aa②rdwolf</a> , <a href="entry://Aaron">①Aa②ron</a> , <a href="entry://Aaron's rod">①Aa②ron's rod</a>
</>
問題如附件:
處理前
boy
<b>boy</b><br>
<a href="entry://altar boy">altar boy</a> , <a href="entry://attaboy">attaboy</a> , <a href="entry://backroom boy">backroom boy</a> , <a href="entry://ball boy">ball boy</a> , <a href="entry://bellboy">bellboy</a> , <a href="entry://blue-eyed boy">blue-eyed boy</a> , <a href="entry://boy">boy</a> , <a href="entry://Boy Scout">boy Scout</a> , <a href="entry://boy wonder">boy wonder</a> , <a href="entry://boyar">boyar</a> , <a href="entry://boycott">boycott</a> , <a href="entry://boyfriend">boyfriend</a> , <a href="entry://boyhood">boyhood</a> , <a href="entry://boyish">boyish</a> , <a href="entry://boyishly">boyishly</a> , <a href="entry://Boyle">boyle</a> , <a href="entry://boyo">boyo</a> , <a href="entry://boysenberry">boysenberry</a> , <a href="entry://busboy">busboy</a> , <a href="entry://cabin boy">cabin boy</a> , <a href="entry://carboy">carboy</a> , <a href="entry://choirboy">choirboy</a> , <a href="entry://cowboy">cowboy</a> , <a href="entry://cowboy hat">cowboy hat</a> , <a href="entry://doughboy">doughboy</a> , <a href="entry://ex-boyfriend">ex-boyfriend</a> , <a href="entry://fair-haired boy">fair-haired boy</a> , <a href="entry://flamboyance">flamboyance</a> , <a href="entry://flamboyancy">flamboyancy</a> , <a href="entry://flamboyant">flamboyant</a> , <a href="entry://flamboyantly">flamboyantly</a> , <a href="entry://hautboy">hautboy</a> , <a href="entry://highboy">highboy</a> , <a href="entry://homeboy">homeboy</a> , <a href="entry://houseboy">houseboy</a> , <a href="entry://linkboy">linkboy</a> , <a href="entry://lowboy">lowboy</a> , <a href="entry://mama's boy">mama's boy</a> , <a href="entry://messenger boy">messenger boy</a> , <a href="entry://mother's boy">mother's boy</a> , <a href="entry://newsboy">newsboy</a> , <a href="entry://office boy">office boy</a> , <a href="entry://old boy">old boy</a> , <a href="entry://pageboy">pageboy</a> , <a href="entry://playboy">playboy</a> , <a href="entry://ploughboy">ploughboy</a> , <a href="entry://plowboy">plowboy</a> , <a href="entry://poor boy">poor boy</a> , <a href="entry://potboy">potboy</a> , <a href="entry://schoolboy">schoolboy</a> , <a href="entry://stableboy">stableboy</a> , <a href="entry://tallboy">tallboy</a> , <a href="entry://tomboy">tomboy</a> , <a href="entry://tomboyish">tomboyish</a> , <a href="entry://whipping boy">whipping boy</a> , <a href="entry://wide boy">wide boy</a>
</>
處理成如下
boy
<b>boy</b><br>
<a href="entry://altar boy">altar <mark>boy</mark></a> , <a href="entry://attaboy">atta<mark>boy</mark></a> , <a href="entry://backroom boy">backroom <mark>boy</mark></a> , <a href="entry://ball boy">ball <mark>boy</mark></a> , <a href="entry://bellboy">bell<mark>boy</mark></a> , <a href="entry://blue-eyed boy">blue-eyed <mark>boy</mark></a> , <a href="entry://boy"><mark>boy</mark></a> , <a href="entry://Boy Scout"><mark>boy</mark> Scout</a> , <a href="entry://boy wonder"><mark>boy</mark> wonder</a> , <a href="entry://boyar"><mark>boy</mark>ar</a> , <a href="entry://boycott"><mark>boy</mark>cott</a> , <a href="entry://boyfriend"><mark>boy</mark>friend</a> , <a href="entry://boyhood"><mark>boy</mark>hood</a> , <a href="entry://boyish"><mark>boy</mark>ish</a> , <a href="entry://boyishly"><mark>boy</mark>ishly</a> , <a href="entry://Boyle"><mark>boy</mark>le</a> , <a href="entry://boyo"><mark>boy</mark>o</a> , <a href="entry://boysenberry"><mark>boy</mark>senberry</a> , <a href="entry://busboy">bus<mark>boy</mark></a> , <a href="entry://cabin boy">cabin <mark>boy</mark></a> , <a href="entry://carboy">car<mark>boy</mark></a> , <a href="entry://choirboy">choir<mark>boy</mark></a> , <a href="entry://cowboy">cow<mark>boy</mark></a> , <a href="entry://cowboy hat">cow<mark>boy</mark> hat</a> , <a href="entry://doughboy">dough<mark>boy</mark></a> , <a href="entry://ex-boyfriend">ex-<mark>boy</mark>friend</a> , <a href="entry://fair-haired boy">fair-haired <mark>boy</mark></a> , <a href="entry://flamboyance">flam<mark>boy</mark>ance</a> , <a href="entry://flamboyancy">flam<mark>boy</mark>ancy</a> , <a href="entry://flamboyant">flam<mark>boy</mark>ant</a> , <a href="entry://flamboyantly">flam<mark>boy</mark>antly</a> , <a href="entry://hautboy">haut<mark>boy</mark></a> , <a href="entry://highboy">high<mark>boy</mark></a> , <a href="entry://homeboy">home<mark>boy</mark></a> , <a href="entry://houseboy">house<mark>boy</mark></a> , <a href="entry://linkboy">link<mark>boy</mark></a> , <a href="entry://lowboy">low<mark>boy</mark></a> , <a href="entry://mama's boy">mama's <mark>boy</mark></a> , <a href="entry://messenger boy">messenger <mark>boy</mark></a> , <a href="entry://mother's boy">mother's <mark>boy</mark></a> , <a href="entry://newsboy">news<mark>boy</mark></a> , <a href="entry://office boy">office <mark>boy</mark></a> , <a href="entry://old boy">old <mark>boy</mark></a> , <a href="entry://pageboy">page<mark>boy</mark></a> , <a href="entry://playboy">play<mark>boy</mark></a> , <a href="entry://ploughboy">plough<mark>boy</mark></a> , <a href="entry://plowboy">plow<mark>boy</mark></a> , <a href="entry://poor boy">poor <mark>boy</mark></a> , <a href="entry://potboy">pot<mark>boy</mark></a> , <a href="entry://schoolboy">school<mark>boy</mark></a> , <a href="entry://stableboy">stable<mark>boy</mark></a> , <a href="entry://tallboy">tall<mark>boy</mark></a> , <a href="entry://tomboy">tom<mark>boy</mark></a> , <a href="entry://tomboyish">tom<mark>boy</mark>ish</a> , <a href="entry://whipping boy">whipping <mark>boy</mark></a> , <a href="entry://wide boy">wide <mark>boy</mark></a>
</>
|
|