Name

matchRow()

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")
    result = table.matchRow("R.*", "type")
    print(result.getString("name"))  # Prints "Snake"
Description
Syntax
.matchRow(regexp, column)
.matchRow(regexp, columnName)
Parameters
regexp
column
columnName
Related getRow()
rows()
findRow()
findRows()
matchRows()
Updated on Sun Aug 30 12:17:17 2015.
Creative Commons License