Assume:
Some kind of text, some text, {in this block, you need to replace ljatinitsu with kirjillits,} some text, some text, some text, some text, some text, like some text , some text, some text, some text, some text, some text, some text, some text, some text, {in this j block, you need to replace ljatinica with a Kirjillian } some text, some text, some text, some text, {in this j block, you need to replace ljatinica with a Kirjillian,} some kind of text, some tjhext, some text, some then tejkst some article, some text, some text, j some kind of text, some kind of text, some kind of text, some kind of text, some kind of text, some kind of text, some kind of text, some kind of then text, some text,
Something like that. Roughly speaking, you need to go to the block bounded by operator brackets (and, there can be any character out of the brackets, including the "space" and "paragraph or new line, I donβt know"). Again, parentheses are conditional. Maybe another tag. And replace the required characters according to the condition.
Those. - you need to pull out all the blocks between the brackets (read "tags") to make them replaceAll and insert back. As if it was so!
I already had all my thoughts over. This code would somehow be improved:
String start = s.substring(0, s.indexOf("{")); String subString = s.substring(s.indexOf("{"), s.indexOf("}")); String end = s.substring(s.indexOf("}")); I can not use it in the cycle. In short, I need help! Especially consider the options with multithreading.
