In this text:
warning here
there are several types of warnings
in this string warning.gif
at the end warning
end of line warning
I want to match every warningone except warning.gif.
I can’t get him to include the last one that has no character (control or other) after it.
using warnings?[^\.]gets what I want, except for the last warning (in the last line). I think because after that there is no character. How can I make it turn on this one?
source
share