参考 matchRows()

matchRows()

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.

示例

语法

matchRows(regexp, [column])

参数

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
Notice any errors or typos? Please let us know. Please feel free to edit src/io/p5.Table.js and open a pull request!

相关参考