У меня есть входная строка, которая может выглядеть примерно так: < /p>
Код: Выделить всё
something + {SomeProductSet1}.count + {SomeOtherProductSet2}.amount >
{SomeProductSet3}.count + {SomeUSOC4}.amount
< /code>
Мне нужно заменить все в {} < /code> на что -то подобное < /p>
something + [abc].count+[xyz].count+[something].count + [xom].amount+
[ytkd].amount > [d].count
I have the list of things for [..] but, how can I "recognize" the '{...}' part It is of variable length and variable character sets.
What would I use as a pattern if Использование регулярных выражений ?? < /p>
Спасибо !! Очень ценится.
Подробнее здесь: https://stackoverflow.com/questions/459 ... xpressions