It seems like a simple problem at first.
Let's start with an example:
using the data set
I would like to be able to match the words war
while excluding wee
I can match wee
with this expression:
Is there a way to use "back references" within  lists?
does not produce the same results as the previous expression because instead of resolving the '\1' to an 'e' or 'o', it searches for the '\\' and '1' characters.
The reason this is a problem is that I thought that I would be able to write an expression like this:
So is there any way to resolve a back reference within  lists?
I've been trying to think back to my CS classes to remember if it's even possible for REs to do this sort of thing.