How to exclude string from regex

Hi Team,

How to exclude the string from regerx pattern ?

Can any one please suggest me here ?


Here i want to exclude “EM” in the place of star ( “*” ) …thanks in Advance…

This looks like a glob aka wildcard pattern and not a regular expression. If you are using Telegraf you might be able to use the [!] pattern to get close, but not exactly, this meaning:

# skips anything starting with E
# skips anything either starting with E or ending with M

Hi Daniel…

Thanks for your reply… Dont we have option to ignore whole word i.e “EM” instaed of starting letter with “E” ?

Unfortunately, I can’t think of a way to do this with globs.