I am trying to create a bit of regex that matches any deviation of the domain “example.com”.
Finding characters before or after “example” is easy enough. Finding deviations of “example” is where it gets challenging for me.
I could do something like [^e][^x][^a][^m][^p][^l][^e]
, but then every character has to be deviated. If I place a ?
after each bracketed group, “x.com” now matches.
I need the expression to match a deviation but not match “example”.
I am doing this within the context of a YARA rule, so lookaround is not available.
Anyone have any ideas?