regular expressions
As the xkcd comic below suggests, regular expressions are a really powerful tool to systematically search (and replace) strings in very large text files. If you have ever used search-and-replace in a word processor or a spreadsheet software, you have probably seen cases where just searching for a particular word doesn't do the trick. This is where regular expressions come in.
To get started, it makes sense to familiarize yourself with the general principal of regexes. For example, check out the regular-expressions.info Quick Start. As this introduction also mentions, you will then have to venture on to learn how exactly regular expressions work in the language or tool you want to use.
regular expression flavours
Here comes a tables with resources on the exact regular expression syntax in different tools and languages. These are often referred to as regular expression flavours.
language / tool | reference | further resources |
---|---|---|
linux tools (awk, sed, grep, etc.) | Basic and Extended regexes | |
python | re module / regex HOWTO | browser-based regex testing |
R | regular expression vignette | stringr package cheat sheet |