in reply to Re: Problems with matching?
in thread Problems with matching?

THANKS!!! I knew I was overlooking something obvious but just couldn't see it!!

Update1: Thanks for the second snippet, but the device names appear at least twice. And I need to use the full names because sometimes the 4 character sequence will match something unrelated in the config file. Didn't think scrubbing this data would be such a pain! :/

Update2: Yep, I did miss it! Thanks for the help!!

Elda Taluta; Sarks Sark; Ark Arks

Replies are listed 'Best First'.
Re^3: Problems with matching?
by ikegami (Patriarch) on May 19, 2011 at 02:53 UTC

    And I need to use the full names

    I used the full names. You might have missed my change to smarter capturing.

    You: / ... (\w\w\w\w)(-\w+-\w+) ... / Me: / ... (\w\w\w\w(-\w+-\w+)) ... /