in reply to Re: regex to return line with name but not if it has a number
in thread regex to return line with name but not if it has a number
Thank you for clarifying your situation. To better understand it, can you please post some concrete (yet anonymized!) lines together with the indication of whether they should match or not?
If you give us the concrete input you have and the relevant code you have, we can much easier pinpoint where your approach goes wrong and provide relevant documentation and help.
From your description, I would think that you could simply reject all lines that match /^-.*\d.*\|/, but your original approach seems to be much longer.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: regex to return line with name but not if it has a number
by Anonymous Monk on Apr 03, 2017 at 13:57 UTC | |
by 1nickt (Canon) on Apr 03, 2017 at 14:31 UTC | |
by Anonymous Monk on Apr 03, 2017 at 17:35 UTC | |
by Corion (Patriarch) on Apr 03, 2017 at 17:41 UTC | |
by afoken (Chancellor) on Apr 03, 2017 at 18:58 UTC | |
| |
by Anonymous Monk on Apr 03, 2017 at 17:56 UTC | |
|