posted 8 years ago
an example is terrific, but it is not a spec. This regex will work for your example, but it's almost without a doubt not what you want:
one\.two\.three|onew\.twos\.trhhee\.sdfour|fsdf\.abcdr\.trew\.jffgh.qacd
without a spec, you can't tell me the above is NOT what you want.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors