Name

matchRows()

Examples
def setup():
    table = Table()
    table.addColumn("name")
    table.addColumn("type")
    newRow = table.addRow()
    newRow.setString("name", "Lion")
    newRow.setString("type", "Mammal")
    newRow = table.addRow()
    newRow.setString("name", "Snake")
    newRow.setString("type", "Reptile")
    newRow = table.addRow()
    newRow.setString("name", "Mosquito")
    newRow.setString("type", "Insect")
    newRow = table.addRow()
    newRow.setString("name", "Lizard")
    newRow.setString("type", "Reptile")
    for row in table.matchRows("R.*", "type"):
        print(row.getString("name") + ": " + row.getString("type"))
Description
Syntax
.matchRows(regexp, column)
.matchRows(regexp, columnName)
Parameters
regexp
column
columnName
Related getRow()
rows()
findRow()
findRows()
matchRow()
Updated on Sun Aug 30 12:17:17 2015.
Creative Commons License