in reply to Re^2: Regex to detect file name
in thread Regex to detect file name
I actually just changed the =~ to !~ and it works as expected with your regex.
I don't understand from the OP what you want, and so I don't understand how the logical negation of Corion's regex gives you what you want. Can you elucidate, perhaps with some matching and non-matching example strings? Are you sure you're really matching what you think you're matching? (Please see perlre, perlretut, and perlrequick.)
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Regex to detect file name
by Laurent_R (Canon) on Jul 05, 2018 at 21:56 UTC | |
by AnomalousMonk (Archbishop) on Jul 06, 2018 at 01:14 UTC |