Extracting text from a string

Discussion in 'Python' started by Anthra Norell, Sep 7, 2006.

  1. s = '''<span class="sale">
    $14.99
    </span>, <span class="sale">
    $27.99
    </span>, <span class="sale">
    $66.99
    </span>, <span class="sale">
    $129.99
    </span>, <span class="sale">
    $254.99
    if line [0] == '$': print line

    $14.99
    $27.99
    $66.99
    $129.99
    $254.99

    Why parse? Why regular expressions?

    Frederic
     
    Anthra Norell, Sep 7, 2006
    #1
    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.