Bookmark button

The RegEx SET operator can cause schizophrenia for perfectly healthy expressions

Keywords: , .

Regular Expressions are a powerful, yet a deceptive text mining tool. There are many pitfalls. One pit that is particularly easy to fall into is that a (sub-)expression can obtain a completely different meaning if it is put within the context of a another (sub-)expression. For instance, using the presumably straight-forward Set operator can be quite tricky..