String Pattern Matching: regex and Python regex documentation

Discussion in 'Java' started by Xah Lee, Sep 17, 2006.

  1. Xah Lee

    Xah Lee Guest

    the Python regex documentation is available at:

    Note that, i've just made the terms of use clear.

    Also, can anyone answer what is the precise terms of license of the
    official python documentation? The official doc site is not

    Note also, that the regex syntax used by Perl is the same as Python.
    So, this section
    which contains clear explanation of regex syntax, will be of interest
    to Perl programers as well.

    If you are studying regex, you might also be interested in this lisp

    Also note, that the regex syntax, is one of unix's $free$ fuckup that
    has damaged a entire computer industry for decades. ($free$ as drugs
    given to children)

    For some examples of corrective steps, see:

    • Scsh manual, Chapter 6: Pattern-matching strings with regular

    • Mathematica Book, section 2.8.4 String Patterns


    Xah Lee, Sep 17, 2006
    1. Advertisements

  2. [followup to]

    I would be interested in this information, too.

    Your tutorial has helped me to write my first regular expression:

    your notes about documentation are interesting, too:

    I have some notes, too:


    I would like to read more on your website, but the usability is
    terrible, mainly due to the missing navigation.

    What about an exchange?

    I assist you with the navigation. you will just need apache
    server-side-include and one file "navigation.html", which will contail
    all of the navigation, very simple.

    And you make an real life example for a python regular expression use-case:

    i want to scan a text for this line:


    picking "this=4" ...

    and add the attributes to an object.

    object = addCustomAttributes(text)

    (ok, the regex part would be enouth).

    Ilias Lazaridis, Sep 22, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.