in reply to Using array slices during string matching

You almost got it. The only problem you have is that the interpolation of the arrays gives you:
/([A B C D E]{5}[E F G H]{2})/
so you have this extra space that can match. To fix this, set the variable $" to the empty string:
$" = "";
You may want to do this scoped, by using 'local'.

Abigail

Replies are listed 'Best First'.
Re: Re: Using array slices during string matching
by seaver (Pilgrim) on Oct 08, 2003 at 14:52 UTC
    Guys,

    thank you!

    I admit I got the wrong idea with the 'array slices' term, and simply using a string of letters with no spaces inbetween ie:

    $group1 = 'ABCDE'; $group2 = 'FGHIJ';
    is what i should do.

    Cheers
    Sam