I'm currently writing a regular expression to search in files using visual studio regex pattern, the pattern im working on is something like this
- starts with string 1
- doesnt contain string2 in between strings 1 and 3
- ends with string 3
Im modifying a previous regex that i used sometime ago (2 years?) but can't come up with something that fits the need. This is currently im trying to work on.
\bword1\W+(?:\w+\W+)*^((?!word2).)*$word3\b
Can anyone teach me a thing or two about regex?
Thank you