That merges ATGATG and ATGATG as ATGATG - not wnat OP gave as an explicit example.
The problem is that a regex finds the first match, which may not be the best match. In this case the first match is the whole string, the best match is the last repeated substring (ATG).
In reply to Re^4: Merging Two Strings
by GrandFather
in thread Merging Two Strings
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |