in reply to Re^3: Merging Two Strings
in thread Merging Two Strings
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).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Merging Two Strings
by Roy Johnson (Monsignor) on Oct 27, 2005 at 19:47 UTC |