Dieser StringRegex und entfernen Sie Zeichenketten wie ` color {*}` in PHP
\[\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\]
I übereinstimmen soll, und entfernen Sie Strings wie \color{*}
in PHP
\color
und die nächste {}
und deren Inhalt :
- \ color {Blau}
- \ color {Red}
- usw.
Ich glaube, ich bin nicht sehr weit ... https://regex101.com/r/gM1uW3/1
Was ist Ihr regex Geschmack? –
versuchen ** [this] (https://regex101.com/r/gM1uW3/2) ** – rock321987
Was ist Ihre erwartete Ergebniszeichenfolge? –