Regular expressions (also "regex" or "regexp") are a powerful way to look for patterns in text, and we employ regular expressions in the PyReconstruct interface mainly to filter lists. To filter a list, you will be asked for an expression you would like to evaluate for, and you . You will therefore need to understand a little bit about how regular expressions are constructed. Here, we present the bare minimum to get up and running using regular expressions.
After browsing this page you might want to learn more, and YouTube has a wealth of information about using regular expressions in Python. Simply search for "regular expression python". Be aware that many programming languages have their own, unique spin on regular expressions. Regular expressions in Emacs and elisp, for example, differ from those in Python, so be sure you are looking specifically into Python regular expressions. You can write very complicated regular expressions in Python to match a variety of patterns, and for a definitive, in-depth discussion, please see the Python documentation on the re module.
...
Expression | Explainer | Examples | Matches |
---|---|---|---|
\x | Interpret x literally | d01\*c01 | d01*c01 |
d01\+c01 | d01+c01 | ||
d01\.c01 | d01.c01 |
...