in reply to Regex help

Have you tried captures and backreferences?

# A B C D E C F G m/[a-z][a-z]([a-z])[a-z][a-z]\1[a-z][a-z]/
-ArchFool

Replies are listed 'Best First'.
Re^2: Regex help
by Anonymous Monk on Jun 23, 2007 at 02:17 UTC
    Thanks ArchFool.

    I had something like yours. It produced results with other repeated symbols (letters) than the ones at positions 3 and 6.