On Thu, Nov 26, 2015 at 10:53 AM, Marko Rauhamaa <ma...@pacujo.net> wrote: > Regular expressions can handle any regular language just fine. They are > commonly used to define the lexical tokens of a language.
Not sure about _defining_ them, but they're certainly often used to _recognize_ them, eg in syntax highlighters. ChrisA -- https://mail.python.org/mailman/listinfo/python-list