tobias_hofer has asked for the wisdom of the Perl Monks concerning the following question:
Hello
I got following string:
abc_IoExtFscInjS_GetGlobalDatasetActvMethod
and i do a regex on this in an if statement:
if ( ($__item =~m/(?!Eth.+cfg)Eth/i) || ($__item=~m/(?!abc_Eth.+cfg)abc_Eth/i) )
Its matching.. I do not know why.. It should not match
as in the string there is no "Eth" and no "abc_Eth"..
This makes me going crazy..
Any help is welcome!
Best regards! Tobias
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex matches string, i do not know why?!
by Corion (Patriarch) on Apr 26, 2013 at 12:38 UTC | |
|
Re: Regex matches string, i do not know why?!
by hdb (Monsignor) on Apr 26, 2013 at 12:39 UTC | |
by tobias_hofer (Friar) on Apr 26, 2013 at 12:42 UTC | |
|
Re: Regex matches string, i do not know why?!
by choroba (Cardinal) on Apr 26, 2013 at 12:41 UTC | |
|
Re: Regex matches string, i do not know why?!
by dasgar (Priest) on Apr 26, 2013 at 22:29 UTC |