$str =~ /^A[^A-Z]*B[^A-Z]*C[^A-Z]*D$/;
You can write this a little more clearly as:
my $nu = qr/[^A-Z]*/; $str =~ /^ A ${nu} B ${nu} C ${nu} D $/x;
(Use [:^upper:] or the Unicode \P{IsUpper} for non-English text.)
In reply to Re: RegEx ignoring intervening characters?
by gaal
in thread RegEx ignoring intervening characters?
by mdunnbass
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |