Finds the rows in the Table that match the regular expression provided, and returns references to those rows. Returns an array, so for must be used to iterate through all the rows, as shown in the example. The column to search may be specified by either its ID or title.
Examples
Syntax
matchRows(regexp, [column])
Parameters
regexp
String:
The regular expression to match
column
String|Integer:
The column ID (number) or title (string)
Returns
p5.TableRow[]: An Array of TableRow objects
This page is generated from the comments in src/io/p5.Table.js . Please feel free to edit it and submit a pull request!
Related References
p5.Table
Table objects store data with multiple rows and columns, much like in a traditional spreadsheet.
p5.TableRow
A TableRow object represents a single row of data values, stored in columns, from a table.
addColumn
Use addColumn() to add a new column to a Table object.
addRow
Use addRow() to add a new row of data to a p5.Table object.