let: string str =
"a=<random text>
a=pattern:<random text (may be fixed length)>
a=<random text>";
In the given string above, let's assume that a=
and pattern
are constants. It is possible that there may or may not be a line break (\n
) after each line.
Can you suggest a way to eliminate a=pattern:<random>
from the string variable str
?