in reply to Another Pattern Matching Question
G'day surib,
Welcome to the monastery.
You show the original pattern as: /3B41|2RT\.\d{10}\.\d+\.bin/. Making allowances for the lack of <code> tags, I've assumed 1|2 should be [0|1|2] - this gives a regex which matches the first filename. However, making the same assumption a few lines further down, /3B4[0|1|2]RT\.\d{10}\.\d+R?\.bin/ should have matched both filenames. Was my assumption wrong? Have you shown the correct filenames? Did you type some other part of the regex incorrectly? Please clarify.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Another Pattern Matching Question
by surib (Initiate) on Oct 12, 2012 at 17:25 UTC | |
by kcott (Archbishop) on Oct 12, 2012 at 19:27 UTC | |
by surib (Initiate) on Oct 12, 2012 at 17:43 UTC | |
by runrig (Abbot) on Oct 12, 2012 at 17:50 UTC |