Sorry I just coppied the the code without looking at the text. When "-" is encounter the output would have to be the same with just the - included i.e.
$O = "AAABBBCCCDDD"; $Mod = "BbBCc-C"; $Result = "aaaBbBCc-Cddd";
In reply to Re^2: Regex + substring
by Anonymous Monk
in thread Regex + substring
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |