I'm trying to write a regex that matches a.c, hello.c, etc.c
, but not a.in.c, hello.in.c, etc.in.c
.
Here's my regex: https://regex101.com/r/jC8nB0/21
It says that the negative lookahead won't match what I specified, that is, .in.c
. I didn't know where to teach it to match .c
. I tried both inside the parenthesis and outside.
I've read Regex: match everything but specific pattern but it talks about matching everything except something, but I need to match a rule except other rule.