
Assuming myregex is required, the following result was found.
v_MyFormattedString = v_MyString.replaceAll("(\b\w+\b)(?=.*\b\1\b)",""); // yields World Hello Joe Remove block comments: v_MyRegEx = "(\/\*([^*]|(\*+[^*\/]))*\*+\/)"; v_MyString = "String to output: /* this is a comment */"; v_MyFormattedString =...

bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4
0xb038962F3809b425D661EF5D22294Cf45E02FebF