Are there any online grep tutorials that would feature some online tool for performing exercises? For example, having some predefined text sample and being told what patterns to find and so forth? It would be a very useful tool for practical learning of grep in a predictable environment.
If you're looking for an online environment to practice your pattern matching using
In terms of exercises, one idea is to search for questions tagged with
To get you started there is the regex site which has a variety of great resources.
Note: although you asked about the
I don't know if there's online resources, but local tests is fine, e.g with
This will help you learn about regex.
The package is available in Ubuntu / Arch repository, to install it, do:
Just a suggestion that satisfies the online and regex portion of your question:
http://gskinner.com/RegExr/ is a pretty friendly regex testing tool. It highlights results on the fly as you create your regex pattern. I use it regularly (there's also a desktop version using Adobe AIR)
As tojrobinson said, there's only a subset of regex implemented in