-4
\[\color{Blue}{4} \times 2 \times 5 \times \color{Blue}{25} = \underbrace{\color{Blue}{4} \times \color{Blue}{25}}_{100} \times 5 \times 2 = \underbrace{100 \times 5}_{500} \times 2 = 500 \times 2 = 1\ 000\]
我想匹配和刪除像\color{*}
串在PHP
\color
和下一{}
及其內容:
- \顏色{藍}
- \顏色{紅}
- 等
我覺得我不是很遠...... https://regex101.com/r/gM1uW3/1
什麼是你的正則表達式的味道? –
嘗試** [此](https://regex101.com/r/gM1uW3/2)** – rock321987
您的預期結果字符串是什麼? –