#!/usr/bin/perl -wl use strict; $_="17341234"; s/(.)(?=...\1)|(?<=(.)...)\2/defined $1 ? "A" : "B"/eg; print; __END__ A7AAB2BB
Makeshifts last the longest.
In reply to Re: Replace zero-width grouping?
by Aristotle
in thread Replace zero-width grouping?
by tinypig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |