-1
我有文本行是這樣的:正則表達式匹配與不空間
This is not imrtant </span>12 Kg Vanilje Sukker</div> neither is this side
像這樣
This is not imrtant </span>12 Kg VaniljeSukker</div> neither is this side
(見Vanilje & Sukker之間缺少空間)
我的正則表達式的樣子像這樣:
/<\/span>(.+)\s(.+)\s(.+?\s?.+)<\/div>/i
和輸出
(第一實例)
[1]: 12 Kg
[2]: Vanilije
[3]: Sukker
(第二實例)
[1]: 12
[2]: Kg
[3] VanilijeSukker
我想第二結果每次
真棒這工作.. TY – Tirdyr