bangor has asked for the wisdom of the Perl Monks concerning the following question:
The regex needs to capture both variations - this is what I tried:# normal line w7R9Kstc017510: split: # split lines w7R9Kstc017510[1]: split: w7R9Kstc017510[2]: split:
But that doesn't capture the normal line./(\w+)(?:\[\d+\]): split:/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with regex
by 1nickt (Canon) on Sep 04, 2018 at 23:01 UTC | |
by bangor (Monk) on Sep 04, 2018 at 23:20 UTC | |
by haukex (Archbishop) on Sep 05, 2018 at 19:16 UTC |