I have the followings string:
String l = "1. [](a+b)\n2. (-(q)*<>(r))\n3. 00(d)\n4. (a+-b)";
String s = "1. [](a+b)\n2. 00(d)"
First string is a expresions list. Sencond string is a expresions subset of first string, but theirs number-ids aren't equals.
Then, I want to do this:
String l2 = "1. <b>[](a+b)</b>\n2. (-(q)*<>(r))\n3. <b>00(d)</b>\n4. (a+-b)";
l2
is a transformation of l
but with expressions marked. This marked expresions are contains in s
. Note that originals strings have symbols as (
, [
, and so on
What is better way to do it?